Make lint happy (#175) #361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Testing | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: | |
- created | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: ./go.mod | |
- uses: golangci/golangci-lint-action@v3 | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
go-version: [ '1.20', '1.21' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install docker-compose v2 | |
shell: bash | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release -R docker/compose download -p docker-compose-linux-x86_64 | |
mv -f docker-compose-linux-x86_64 docker-compose | |
sudo mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose-v2 | |
sudo install docker-compose /usr/local/bin/ | |
docker-compose --version | |
- run: task test | |
tets-summary: | |
name: Test | |
needs: test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- run: echo "All good!" |