mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-20 03:46:09 +08:00
Add env var cleanup (ACTIONS_RUNTIME_URL, ACT_REPOSITORY, etc.) to test.yml matching checks.yml, and remove -race from make test due to pervasive pre-existing data races in upstream act code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
730 B
YAML
30 lines
730 B
YAML
name: checks
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
lint:
|
|
name: check and test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: lint
|
|
run: make lint
|
|
- name: build
|
|
run: make build
|
|
- name: test
|
|
run: |
|
|
unset ACTIONS_RUNTIME_URL
|
|
unset ACTIONS_RESULTS_URL
|
|
unset ACTIONS_RUNTIME_TOKEN
|
|
export GITHUB_REPOSITORY="${GITHUB_REPOSITORY#${SERVER_URL%/}/}"
|
|
export ACT_REPOSITORY="${GITHUB_REPOSITORY}"
|
|
export ACT_OWNER="${ACT_REPOSITORY%%/*}"
|
|
make test
|
|
env:
|
|
SERVER_URL: ${{ github.server_url }}
|