diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..e7e9c9d --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,33 @@ +name: Build and Test + + +on: + + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + build_test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 15.x] + + + steps: + + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: npm ci, build and test + run: | + npm ci + npm run build --if-present + npm test \ No newline at end of file diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..b088a8a --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,33 @@ +name: Build and Test + + +on: + + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + build_test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 15.x,] + + + steps: + + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: npm ci, build and test + run: | + npm install + npm run build --if-present + npm test