Skip to content

Commit

Permalink
Run tests against multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobischo committed Aug 12, 2024
1 parent 70d0c43 commit 8b9a500
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ on:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
strategy:
matrix:
go-version: [ '1.21', '1.22.x' ]

- name: Build
run: docker build -t gokeepasslib .

- name: Test
run: docker-compose run --rm -T gokeepasslib make test
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -v

0 comments on commit 8b9a500

Please sign in to comment.