From 498e36b864a58a64ee68eeec2bd6b6b62bceeb1b Mon Sep 17 00:00:00 2001 From: granitosaurus Date: Thu, 20 Jul 2023 21:22:10 +0700 Subject: [PATCH] add github action --- .github/workflows/nodejs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..1b35f0f --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,20 @@ +name: Node.js CI + +on: + workflow_dispatch: + pull_request: + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: volta-cli/action@v1 + - run: npm ci --no-audit + - run: npm run lint --if-present + - run: npm test + - run: npm run build --if-present + env: + CI: true