From 4bc1e0b1110f5705f8389f165e4b7d366aa6a45f Mon Sep 17 00:00:00 2001 From: weaponsforge Date: Fri, 13 Dec 2024 06:14:14 +0800 Subject: [PATCH] feat: run tests on push --- .github/workflows/test.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..e859aab --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,33 @@ +name: Run Tests + +on: + push: + branches-ignore: + - 'main' + +jobs: + lint-app: + name: Test App + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + + - name: Use NodeJS v20.15.0 + uses: actions/setup-node@v3 + with: + node-version: 20.15.0 + registry-url: https://registry.npmjs.org/ + + - name: Install Dependencies + run: npm install + + - name: Lint + run: npm run lint + + - name: Transpile + run: npm run transpile + + - name: Test + run: npm test +