Skip to content

Commit

Permalink
split compilation check into separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom committed Sep 26, 2022
1 parent bbde6d8 commit c03681d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ on:
- cron: '0 2 * * *'

jobs:
compilation:
name: FreeBSD and OpenBSD compilation check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: 'actions/checkout@v3'

- name: Verify FreeBSD and OpenBSD Builds
run: |
CGO_ENABLED=0 GOOS=freebsd go build
CGO_ENABLED=0 GOOS=openbsd go build
integration:
# run job on proper workflow event triggers (skip job for pull_request event from forks and only run pull_request_target for "tests: run" label)
if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'tests: run' }}"
Expand Down Expand Up @@ -101,11 +114,6 @@ jobs:
run: |
sudo sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf
- name: Verify FreeBSD and OpenBSD Builds
run: |
CGO_ENABLED=0 GOOS=freebsd go build
CGO_ENABLED=0 GOOS=openbsd go build
- name: Run tests
env:
GOOGLE_CLOUD_PROJECT: '${{ secrets.GOOGLE_CLOUD_PROJECT }}'
Expand Down

0 comments on commit c03681d

Please sign in to comment.