This repository has been archived by the owner on May 16, 2024. It is now read-only.
Merge pull request #36 from UniversityRadioYork/alyx-competitions #34
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: Go | |
on: | |
push: | |
branches: [ development ] | |
pull_request: | |
branches: [ development ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: WillAbides/[email protected] | |
with: | |
go-version: 1.17 | |
- run: ls ${{ github.workspace }} | |
- name: Build | |
run: go build -v ./... | |
working-directory: ${{ github.workspace }} | |
- name: Test | |
run: go test -v ./... | |
working-directory: ${{ github.workspace }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: WillAbides/[email protected] | |
with: | |
go-version: 1.17 | |
- name: Lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: latest | |
working-directory: ${{ github.workspace }} |