TinyGo Support and Cloudflare Workers Example #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
golangci-lint: | |
name: Lint Go Source | |
runs-on: ubuntu-latest | |
container: | |
image: golangci/golangci-lint:latest-alpine | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Lint Go source files | |
run: | | |
apk add --no-cache gcc g++ openssl-dev | |
export GOFLAGS=-buildvcs=false | |
go work init | |
go work use -r . | |
golangci-lint run ./... | |
golangci-lint run ./examples/... | |
golangci-lint run ./fsim/... | |
golangci-lint run ./sqlite/... | |
golangci-lint run ./tpm/... | |
shellcheck: | |
name: Lint Shell Scripts | |
runs-on: ubuntu-latest | |
container: | |
image: koalaman/shellcheck-alpine | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Run ShellCheck | |
run: find . \( -name "*.sh" -o -name "*.bash" \) -exec shellcheck '{}' + | |
markdownlint: | |
name: Lint Documentation Markdown | |
runs-on: ubuntu-latest | |
container: | |
image: node:20-alpine | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Lint all markdown | |
run: npx markdownlint-cli2 --config .markdownlint.yml '**/*.md' |