diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0362c5f..3761d1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: build -on: [push, pull_request] +on: + push: + branches: + - master permissions: contents: read pages: write @@ -16,7 +19,7 @@ jobs: - name: Setup node uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: lts/* check-latest: true - name: Build and test run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fb99356 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: test +on: [pull_request] +concurrency: + group: "test" + cancel-in-progress: false +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: lts/* + check-latest: true + - name: Build and test + run: | + npm ci + npm run prepare + - name: Check coverage + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }}