diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml deleted file mode 100644 index d7629f3..0000000 --- a/.github/workflows/build-and-test.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: build-and-test - -on: - pull_request: - paths-ignore: - - '**.md' - push: - paths-ignore: - - '**.md' - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - steps: - - uses: actions/checkout@v2 - - name: Setup node 12 - uses: actions/setup-node@v2 - with: - node-version: [ 16, 18, 20 ] - cache: npm - - run: npm test - - run: npm run build - diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..152dfae --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build-and-test + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: [ '16.x', '18.x', '20.x' ] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + - run: npm test + - run: npm run build +