From 6d65aafd023b07113432891f0d782222b16596ab Mon Sep 17 00:00:00 2001 From: Adam Simpson Date: Thu, 22 Feb 2024 13:58:44 -0500 Subject: [PATCH] add basic linting and spell check (#728) --- .github/workflows/run-ci-cd.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/run-ci-cd.yml diff --git a/.github/workflows/run-ci-cd.yml b/.github/workflows/run-ci-cd.yml new file mode 100644 index 00000000..fb9a9f1c --- /dev/null +++ b/.github/workflows/run-ci-cd.yml @@ -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 cspell@6.13.3 -c cspell.config.json "**/*.{ts,tsx,js,go,md,mdx,yml,yaml,json,scss,css}" \ No newline at end of file