diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 39f66a2..ff4a613 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -10,15 +10,19 @@ permissions: contents: read jobs: scan: + strategy: + matrix: + go: ['1.20','1.21'] + fail-fast: true runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Setup Go 1.20 + - name: Setup Go ${{ matrix.go }} uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: ${{ matrix.go }} cache: false - name: Run GoSec @@ -29,5 +33,5 @@ jobs: - name: Run GoVulnCheck uses: golang/govulncheck-action@v1 with: - go-version-input: 1.20.x + go-version-input: ${{ matrix.go }} go-package: ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e38b25..50a3946 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,15 +10,20 @@ permissions: contents: read jobs: unit: - runs-on: ubuntu-latest + strategy: + matrix: + go: ['1.20','1.21'] + os: [ubuntu-latest, macos-latest, windows-latest] + fail-fast: true + runs-on: ${{ matrix.os }} steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Setup Go 1.20 + - name: Setup Go ${{ matrix.go }} uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: ${{ matrix.go }} cache: false - name: Run Tests diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 4819bd3..a3eb74b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -10,15 +10,19 @@ permissions: contents: read jobs: lint: + strategy: + matrix: + go: ['1.20','1.21'] + fail-fast: true runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Setup Go 1.20 + - name: Setup Go ${{ matrix.go }} uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: ${{ matrix.go }} cache: false - name: Run GolangCI-Lint