diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..05861eb --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,38 @@ +name: validate +on: + push: + branches: + - '+([0-9])?(.{+([0-9]),x}).x' + - 'main' + - 'next' + - 'next-major' + - 'beta' + - 'alpha' + - '!all-contributors/**' + pull_request: {} +jobs: + main: + # ignore all-contributors PRs + if: ${{ !contains(github.head_ref, 'all-contributors') }} + strategy: + matrix: + node: [12, 14, 16] + runs-on: ubuntu-latest + steps: + - name: 🛑 Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.0 + + - name: ⬇️ Checkout repo + uses: actions/checkout@v2 + + - name: ⎔ Setup node + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + + - name: 📥 🏗 Download deps and run build script + uses: bahmutov/npm-install@v1 + with: + useLockFile: false + env: + HUSKY_SKIP_INSTALL: true diff --git a/.gitignore b/.gitignore index 8fd12ce..5b20c3b 100644 --- a/.gitignore +++ b/.gitignore @@ -114,3 +114,5 @@ dist .yarn/unplugged .yarn/build-state.yml .pnp.* + +lib