Merge pull request #9 from LarssonOliver/dependabot/npm_and_yarn/web/… #51
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: lnkshrt-runner-set | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Verify Dependencies | |
run: go mod verify | |
- name: Tidy Dependencies | |
run: go mod tidy | |
- name: Build | |
run: sh scripts/build.sh | |
test: | |
runs-on: lnkshrt-runner-set | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Verify Dependencies | |
run: go mod verify | |
- name: Tidy Dependencies | |
run: go mod tidy | |
- name: Test | |
run: sh scripts/test.sh | |
lint: | |
runs-on: lnkshrt-runner-set | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Verify Dependencies | |
run: go mod verify | |
- name: Tidy Dependencies | |
run: go mod tidy | |
- name: Lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
args: --timeout 5m | |
skip-go-installation: true |