diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b84692cf..25ff48d8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,11 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.20' - - name: "Install staticcheck" + - name: "Prepare: compile assets" + run: "GOBIN=$PWD/bin go install -v ./cmd/compile_assets" + - name: "Run: compile assets" + run: "$PWD/bin/compile_assets" + - name: "Prepare: staticcheck" run: 'go install honnef.co/go/tools/cmd/staticcheck@latest' - run: 'go vet ./...' - run: 'staticcheck ./...' @@ -31,7 +35,10 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.20' - - run: "GOBIN=$PWD/bin go install -v ./cmd/compile_assets" - - run: "$PWD/bin/compile_assets" - - run: "go test -c -v ./test && ./test.test '-test.v'" # cheat and work around working directory issues + - name: "Prepare: compile assets" + run: "GOBIN=$PWD/bin go install -v ./cmd/compile_assets" + - name: "Run: compile assets" + run: "$PWD/bin/compile_assets" + - name: "Run: tests" + run: "go test -c -v ./test && ./test.test '-test.v'" # cheat and work around working directory issues timeout-minutes: 30