Skip to content

Commit

Permalink
[Tests] migrate tests to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 6, 2022
1 parent cae5e9e commit 4f8b57c
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 279 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/node-aught.yml
@@ -0,0 +1,25 @@
name: 'Tests: node.js < 10'

on: [pull_request, push]

permissions:
contents: read

jobs:
tests:
permissions:
contents: none
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '< 10'
type: minors
command: npm run tests-only

node:
permissions:
contents: none
name: 'node < 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
12 changes: 12 additions & 0 deletions .github/workflows/node-pretest.yml
@@ -0,0 +1,12 @@
name: 'Tests: pretest/posttest'

on: [pull_request, push]

permissions:
contents: read

jobs:
tests:
permissions:
contents: none
uses: ljharb/actions/.github/workflows/pretest.yml@main
25 changes: 25 additions & 0 deletions .github/workflows/node-tens.yml
@@ -0,0 +1,25 @@
name: 'Tests: node.js >= 10'

on: [pull_request, push]

permissions:
contents: read

jobs:
tests:
permissions:
contents: none
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '>= 10'
type: minors
command: npm run tests-only

node:
permissions:
contents: none
name: 'node >= 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
21 changes: 21 additions & 0 deletions .github/workflows/rebase.yml
@@ -0,0 +1,21 @@
name: Automatic Rebase

on: [pull_request_target]

permissions:
contents: read

jobs:
_:
permissions:
contents: write # for ljharb/rebase to push code to rebase
pull-requests: read # for ljharb/rebase to get info about PR
name: "Automatic Rebase"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/rebase@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/require-allow-edits.yml
@@ -0,0 +1,17 @@
name: Require “Allow Edits”

on: [pull_request_target]

permissions:
contents: read

jobs:
_:
permissions:
pull-requests: read # for ljharb/require-allow-edits to check 'allow edits' on PR
name: "Require “Allow Edits”"

runs-on: ubuntu-latest

steps:
- uses: ljharb/require-allow-edits@main
279 changes: 0 additions & 279 deletions .travis.yml

This file was deleted.

0 comments on commit 4f8b57c

Please sign in to comment.