Skip to content

Implement new and improved terraform-base deployment #16

Implement new and improved terraform-base deployment

Implement new and improved terraform-base deployment #16

Workflow file for this run

name: Lints
on:
pull_request:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: echo "GO_VER=$(cat .tool-versions | grep go | cut -d' ' -f2 )" >> $GITHUB_ENV
- run: echo "NODE_VER=$(cat .tool-versions | grep nodejs | cut -d' ' -f2)" >> $GITHUB_ENV
# Setup nodejs and build the webui so that we can
# compile the go code that embeds the webui.
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VER }}'
- run: cd webui && npm install
- run: cd webui && npm run build
- uses: actions/setup-go@v4
with:
go-version: '${{ env.GO_VER }}'
- run: go mod tidy
- run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- uses: pre-commit/[email protected]