From ef11ac81a3e52f8df537cea7c607eb393136a038 Mon Sep 17 00:00:00 2001 From: trev Date: Tue, 18 Mar 2025 22:26:01 -0400 Subject: [PATCH] feat: lint workflow --- .github/workflows/lint.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..8e08dcf --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,37 @@ +name: Lint Workflow + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Nix + uses: nixbuild/nix-quick-install-action@v30 + + - name: Restore and save Nix store + go modules + node packages + uses: nix-community/cache-nix-action@v6 + with: + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + restore-prefixes-first-match: nix-${{ runner.os }}- + gc-max-store-size-linux: 1G + purge: true + purge-prefixes: nix-${{ runner.os }}- + purge-created: 0 + purge-primary-key: never + paths: | + ~/.cache/go-build + ~/go/pkg/mod + ~/.npm + + - name: Lint + run: nix develop --command ts-lint \ No newline at end of file