From ad4cce01858d021fbf5a4722310bd08cca21aab9 Mon Sep 17 00:00:00 2001 From: Cailyn Sinclair Date: Sat, 17 May 2025 17:36:53 -0700 Subject: [PATCH] Add lint and type check workflows --- .github/workflows/lint.yml | 18 ++++++++++++++++++ .github/workflows/test.yml | 18 ++++++++++++++++++ .github/workflows/type-check.yml | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/test.yml create mode 100644 .github/workflows/type-check.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f9dfe8e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint + +on: + push: + branches: [ main ] + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8f98042 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: Test + +on: + push: + branches: [ main ] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn test diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml new file mode 100644 index 0000000..fa83009 --- /dev/null +++ b/.github/workflows/type-check.yml @@ -0,0 +1,18 @@ +name: Type Check + +on: + push: + branches: [ main ] + pull_request: + +jobs: + type-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn run check:type