Skip to content

Commit

Permalink
ci: clean up workflow for Go testing (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored Oct 14, 2023
1 parent 9ba46d2 commit cc3e889
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
name: test go
name: Test Go
on:
pull_request:
merge_group:
schedule:
- cron: 0 23 * * *
jobs:
build:
name: building defsec
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
if: matrix.os != 'windows-latest'
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
if: matrix.os == 'windows-latest'
with:
go-version-file: go.mod
cache: false

- name: Run full tests
if: matrix.os == 'ubuntu-latest'
- name: Run tests
run: make test
shell: bash

0 comments on commit cc3e889

Please sign in to comment.