Skip to content

Commit

Permalink
add basic linting and spell check (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
asimpson authored Feb 22, 2024
1 parent 22941fc commit 6d65aaf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: run-ci-cd

on:
pull_request:
branches:
- main

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: true

steps:
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: latest

- name: Check spelling
run: npx --yes [email protected] -c cspell.config.json "**/*.{ts,tsx,js,go,md,mdx,yml,yaml,json,scss,css}"

0 comments on commit 6d65aaf

Please sign in to comment.