Skip to content

Update actions and test Passenger app #42

Update actions and test Passenger app

Update actions and test Passenger app #42

Workflow file for this run

name: Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: download modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: build
run: go build .
- name: test
run: go test -json ./... > test.json
- name: annotate tests
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json
lint:
name: Lint
strategy:
matrix:
go-version: [1.20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
stable: 'true'
go-version: '1.20'
- uses: golangci/golangci-lint-action@v3