Skip to content

chore(deps): update actions/checkout action to v4.1.1 #76

chore(deps): update actions/checkout action to v4.1.1

chore(deps): update actions/checkout action to v4.1.1 #76

name: Validate and test code
on:
workflow_call: {}
workflow_dispatch: {}
push:
branches:
- "*"
tags-ignore:
- "*"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install golangci
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$HOME/.local/bin" v1.54.2
- name: Install helm-docs
uses: jaxxstorm/[email protected]
with:
repo: norwoodj/helm-docs
tag: v1.11.0
cache: enable
- name: Run pre-commit
uses: pre-commit/[email protected]
test:
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Write GoList for Nancy
run: go list -json -m all > go.list
- name: Run Nancy
uses: sonatype-nexus-community/nancy-github-action@main
- name: Test
run: go test -v ./...