diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-13 11:54:20 +0200 |
---|---|---|
committer | Nicolas Peugnet <n.peugnet@free.fr> | 2021-09-13 13:27:57 +0200 |
commit | 888cb69f0a33c138ea4ac2212e799ba7cb9ae22a (patch) | |
tree | 65ba0e6e145cb77813aa0e728eca649edd563290 | |
parent | cb548fedb8668be2cdd18d310ef77e1fef8c5fcb (diff) | |
download | dna-backup-888cb69f0a33c138ea4ac2212e799ba7cb9ae22a.tar.gz dna-backup-888cb69f0a33c138ea4ac2212e799ba7cb9ae22a.zip |
run tests on windows and macos with multiple go version
-rw-r--r-- | .github/workflows/build.yml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b701a0d..1466e88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,21 +18,32 @@ jobs: args: --issues-exit-code=0 # do not fail ci only-new-issues: true test: - runs-on: ubuntu-latest + strategy: + matrix: + go-version: [1.16.x, 1.17.x] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: ${{ matrix.go-version }} - name: Set up cache uses: actions/cache@v2 with: + # In order: + # * Module download cache + # * Build cache (Linux) + # * Build cache (Mac) + # * Build cache (Windows) path: | - ~/.cache/go-build ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + %LocalAppData%\go-build key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- |