From 93c653020e165f5e7d9d1b5d46b8274d33dd2273 Mon Sep 17 00:00:00 2001 From: jasikpark Date: Fri, 13 Jan 2023 17:55:00 +0000 Subject: [PATCH 1/2] Add CI --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..9bd4344 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + lint: + name: Typecheck + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install node and npm + uses: volta-cli/action@v4 + - name: Install dependencies + run: npm install + - name: Typecheck + run: npm run typecheck + format: + name: Check prettier + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install node and npm + uses: volta-cli/action@v4 + - name: Install dependencies + run: npm install + - name: Check formatting + run: npm run format:check From 5ba94470e10115eff3d7a6e88be3cd995165b43b Mon Sep 17 00:00:00 2001 From: jasikpark Date: Fri, 13 Jan 2023 18:02:40 +0000 Subject: [PATCH 2/2] Add test ci job --- .github/workflows/ci.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9bd4344..98ab806 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,3 +31,15 @@ jobs: run: npm install - name: Check formatting run: npm run format:check + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install node and npm + uses: volta-cli/action@v4 + - name: Install dependencies + run: npm install + - name: Run tests + run: npm run test