diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c81fe35 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: build +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v3 + - name: use node.js + uses: actions/setup-node@v3 + with: + node-version: "22.x" + cache: "npm" + - run: npm ci + - run: npm run build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a076b0b..847dd77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,5 +10,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: "22.x" - - run: npm install + cache: "npm" + - run: npm ci - run: npm run test