From 981da866ca54fd25e4dc66aa1d2769ed2f1c8f75 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 7 Sep 2023 12:01:45 -0700 Subject: [PATCH] [Tests] migrate from travis to github actions not sure what to do about "airtap" yet --- .github/workflows/node-aught.yml | 17 +++++++++++++++++ .github/workflows/node-pretest.yml | 7 +++++++ .github/workflows/node-tens.yml | 17 +++++++++++++++++ .github/workflows/rebase.yml | 15 +++++++++++++++ .github/workflows/require-allow-edits.yml | 12 ++++++++++++ .travis.yml | 5 ----- 6 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/node-aught.yml create mode 100644 .github/workflows/node-pretest.yml create mode 100644 .github/workflows/node-tens.yml create mode 100644 .github/workflows/rebase.yml create mode 100644 .github/workflows/require-allow-edits.yml diff --git a/.github/workflows/node-aught.yml b/.github/workflows/node-aught.yml new file mode 100644 index 0000000..c8d9bb9 --- /dev/null +++ b/.github/workflows/node-aught.yml @@ -0,0 +1,17 @@ +name: 'Tests: node.js 6 - 10' + +on: [pull_request, push] + +jobs: + tests: + uses: ljharb/actions/.github/workflows/node-majors.yml@main + with: + range: '>= 6 < 10' + command: npm run tests-only + + node: + name: 'node 6 - 10' + needs: [tests] + runs-on: ubuntu-latest + steps: + - run: 'echo tests completed' diff --git a/.github/workflows/node-pretest.yml b/.github/workflows/node-pretest.yml new file mode 100644 index 0000000..765edf7 --- /dev/null +++ b/.github/workflows/node-pretest.yml @@ -0,0 +1,7 @@ +name: 'Tests: pretest/posttest' + +on: [pull_request, push] + +jobs: + tests: + uses: ljharb/actions/.github/workflows/pretest.yml@main diff --git a/.github/workflows/node-tens.yml b/.github/workflows/node-tens.yml new file mode 100644 index 0000000..1434ccd --- /dev/null +++ b/.github/workflows/node-tens.yml @@ -0,0 +1,17 @@ +name: 'Tests: node.js >= 10' + +on: [pull_request, push] + +jobs: + tests: + uses: ljharb/actions/.github/workflows/node-majors.yml@main + with: + range: '>= 10' + command: npm run tests-only + + node: + name: 'node >= 10' + needs: [tests] + runs-on: ubuntu-latest + steps: + - run: 'echo tests completed' diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 0000000..5b6d04b --- /dev/null +++ b/.github/workflows/rebase.yml @@ -0,0 +1,15 @@ +name: Automatic Rebase + +on: [pull_request_target] + +jobs: + _: + name: "Automatic Rebase" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: ljharb/rebase@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/require-allow-edits.yml b/.github/workflows/require-allow-edits.yml new file mode 100644 index 0000000..7b842f8 --- /dev/null +++ b/.github/workflows/require-allow-edits.yml @@ -0,0 +1,12 @@ +name: Require “Allow Edits” + +on: [pull_request_target] + +jobs: + _: + name: "Require “Allow Edits”" + + runs-on: ubuntu-latest + + steps: + - uses: ljharb/require-allow-edits@main diff --git a/.travis.yml b/.travis.yml index eb2fb15..ece718f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,7 @@ language: node_js node_js: - 'stable' - - '12' - - '10' - - '8' - - '6' script: - - 'npm test' # Run browser tests on one node version. - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers; fi' addons: