Skip to content

Bump actions/setup-go from 5 to 6 #43

Bump actions/setup-go from 5 to 6

Bump actions/setup-go from 5 to 6 #43

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
show-progress: "false"
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
env:
# https://github.com/actions/setup-go/issues/424
TAR_OPTIONS: --skip-old-files
- name: Check go fmt
run: |
gofmt -l -s -w .
git diff --exit-code
- name: Build
run: go build -v ./...
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
package_json_file: lemmy-js-client/package.json
- name: Set up Node
uses: actions/setup-node@v4
with:
cache: pnpm
cache-dependency-path: lemmy-js-client/pnpm-lock.yaml
- name: Generate docs.json
working-directory: lemmy-js-client
run: |
pnpm install
pnpm run docs --json ../docs.json
- name: Generate Lemmy API code
run: go run cmd/gen/main.go -json-file docs.json -out-dir .
- name: Check that generated files are not changed
run: git diff --exit-code