act_runner/.gitea/workflows/test.yml

35 lines
779 B
YAML

name: checks
on:
- push
- pull_request
env:
DOOD: 1
NO_QEMU: 1
NO_EXTERNAL_IP: 1
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 }}