Skip to content

chore(deps): update all dependencies #189

chore(deps): update all dependencies

chore(deps): update all dependencies #189

Workflow file for this run

name: Tests
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
# Builds images for target boards.
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21']
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
# Cache go build cache, used to speedup go test
# https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Go Build Cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
# Cache go mod cache, used to speedup builds
- name: Go Mod Cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Vendor Go
run: go mod vendor
#- name: Lint Go
# run: make lint
- name: Lint Go
run: cd ~ && go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest && cd - && golangci-lint run --timeout=10m ./...
- name: Test Go
run: make test