From 4e87b9d6452dfbc9f3cb1eb3f5bf4fa0146b64d9 Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Mon, 20 Sep 2021 03:01:28 -0400 Subject: [PATCH 1/3] Use GitHub Actions --- .github/workflows/validate.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..5825ff0 --- /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 + uses: bahmutov/npm-install@v1 + with: + useLockFile: false + env: + HUSKY_SKIP_INSTALL: true From 2e48b3387973c75879ff57e0aa1e648cda98a90d Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Mon, 20 Sep 2021 03:01:33 -0400 Subject: [PATCH 2/3] Ignore lib directory --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) 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 From 13b30f1fa0a8e60d215976a97e86e533a2a543db Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Mon, 20 Sep 2021 03:05:06 -0400 Subject: [PATCH 3/3] Rename install step for clarity --- .github/workflows/validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5825ff0..05861eb 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -30,7 +30,7 @@ jobs: with: node-version: ${{ matrix.node }} - - name: 📥 Download deps + - name: 📥 🏗 Download deps and run build script uses: bahmutov/npm-install@v1 with: useLockFile: false