Skip to content

Update actions and test Passenger app #44

Update actions and test Passenger app

Update actions and test Passenger app #44

Workflow file for this run

name: Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
cache: false
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/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:
go-version: '1.20'
cache: false
- uses: golangci/golangci-lint-action@v3