mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-01 03:08:48 +00:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: tester
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
branches:
|
|
- "main"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
changes:
|
|
outputs:
|
|
should-run-tests: ${{ steps.changes.outputs.go == 'true' }}
|
|
if: github.event.pull_request.draft == false
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dorny/paths-filter@v2
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
go:
|
|
- '**.go'
|
|
- 'go.*'
|
|
- '.github/workflows/test.yml'
|
|
test:
|
|
needs: [changes]
|
|
if: needs.changes.outputs.should-run-tests == 'true'
|
|
name: runner / gotest
|
|
runs-on: ubuntu-22.04
|
|
container: ghcr.io/runatlantis/testing-env:latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: make test-all
|
|
- run: make check-fmt
|
|
|
|
skip-test:
|
|
needs: [changes]
|
|
if: needs.changes.outputs.should-run-tests == 'false'
|
|
name: runner / gotest
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- run: 'echo "No build required"'
|