Skip to content

Ep252: Adding Amazon link #185

Ep252: Adding Amazon link

Ep252: Adding Amazon link #185

Workflow file for this run

name: Go testing
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
testing:
name: Testing (Go)
runs-on: ubuntu-24.04
defaults:
run:
working-directory: website-admin
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/setup-go@v6
with:
go-version: "1.25"
cache: false
- name: Run go version
run: go version
- name: Run Unit tests.
run: make test
golangci:
name: Linting (Go)
runs-on: ubuntu-24.04
defaults:
run:
working-directory: website-admin
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/setup-go@v6
with:
go-version: "1.25"
cache: false
- name: Run go version
run: go version
- name: Run go fmt
if: runner.os != 'Windows'
run: diff -u <(echo -n) <(gofmt -d -s .)
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.8.0
working-directory: website-admin
# golangci-lint contains only a set of rules from staticcheck.
# It's not the same thing as the staticcheck binary.
# Hence we deactivate it above and run it alone.
# See https://golangci-lint.run/usage/linters/#enabled-by-default
- name: Run staticcheck
run: make staticcheck
compile:
name: Compile application
runs-on: ubuntu-24.04
defaults:
run:
working-directory: website-admin
needs: [testing, golangci]
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Run go version
run: go version
- name: Build
run: make build