Files
openpayments-mock/.gitea/workflows/ci.yaml
T
renovate b106115b0c
acctest Acceptance tests passed
renovate/stability-days Updates have met minimum release age requirement
openpayments-mock / check (pull_request) Successful in 1m20s
openpayments-mock / vulnerabilities (pull_request) Successful in 1m21s
openpayments-mock / build (pull_request) Successful in 1m42s
chore(deps): update actions/checkout action to v7
2026-06-20 18:09:46 +00:00

70 lines
1.9 KiB
YAML

name: openpayments-mock
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
if: gitea.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
vulnerabilities:
if: gitea.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Check vulnerabilities
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
build:
runs-on: ubuntu-latest
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
steps:
- uses: actions/checkout@v7
- uses: buildtool/setup-buildtools-action@v1
- name: Build and push
run: unset GITEA_TOKEN && build && push
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: deployment-artifacts
path: release/
retention-days: 30
- name: Trigger acceptance tests
if: gitea.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.ACCTEST_TOKEN }}
GITEA_URL: ${{ gitea.server_url }}
run: |
curl --fail-with-body -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"ref": "main",
"inputs": {
"trigger_repo": "openpayments-mock",
"trigger_commit": "${{ gitea.sha }}",
"trigger_run": "${{ gitea.run_id }}"
}
}' \
"${GITEA_URL}/api/v1/repos/shiny/acctest/actions/workflows/ci.yaml/dispatches"