Skip to content

Commit

Permalink
Only run REPL build on internal branches or when specific label is set (
Browse files Browse the repository at this point in the history
#4156)

* Refine what jobs run

* Only build REPL artefacts from forks if label is set
  • Loading branch information
lukastaegert committed Jun 27, 2021
1 parent 9c436a7 commit feafc47
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/labels.json
Expand Up @@ -50,5 +50,6 @@
{ "name": "x⁴ ⋅ hold", "color": "#CFD8DC" },
{ "name": "x⁵ ⋅ in progress", "color": "#4CAF50" },
{ "name": "x⁶ ⋅ invalid", "color": "#CFD8DC" },
{ "name": "x⁷ ⋅ wontfix", "color": "#CFD8DC" }
{ "name": "x⁷ ⋅ wontfix", "color": "#CFD8DC" },
{ "name": "x8 ⚙️ build repl artefacts", "color": "#4CAF50" }
]
2 changes: 2 additions & 0 deletions .github/workflows/repl-artefacts.yml
Expand Up @@ -2,9 +2,11 @@ name: Upload REPL artefacts

on:
pull_request_target:
types: [synchronize, opened, reopened, labeled]

jobs:
upload:
if: ${{ github.event.pull_request.head.repo.full_name == 'rollup/rollup' || contains( toJson(github.event.pull_request.labels), 'x8 ⚙️ build repl artefacts' ) }}
runs-on: ubuntu-latest
name: Upload
steps:
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/tests.yml
Expand Up @@ -5,11 +5,12 @@ on:
branches:
- master
pull_request:
types: [synchronize, opened, reopened]

jobs:
linux14:
linux16:
runs-on: ubuntu-latest
name: Node 14 + Coverage (Linux)
name: Node 16 + Coverage (Linux)
steps:
- name: Checkout Commit
uses: actions/checkout@v2
Expand All @@ -18,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests with coverage
Expand All @@ -29,16 +30,16 @@ jobs:
with:
commit_parent: ${{ github.event.pull_request.head.sha }}

linux12:
linux14:
runs-on: ubuntu-latest
name: Node 12 + Extra Tests (Linux)
name: Node 14 + Extra Tests (Linux)
steps:
- name: Checkout Commit
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '14'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint
Expand All @@ -50,16 +51,19 @@ jobs:
env:
CI: true

linux10:
linux:
runs-on: ubuntu-latest
name: Node 10 (Linux)
strategy:
matrix:
node: ['10', '12']
name: Node ${{ matrix.node }} (Linux)
steps:
- name: Checkout Commit
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '10'
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
Expand All @@ -71,7 +75,7 @@ jobs:
runs-on: windows-2019
strategy:
matrix:
node: ['10', '12', '14', '16']
node: ['10', '16']
name: Node ${{ matrix.node }} (Windows)
steps:
- name: Configure git line-breaks
Expand Down

0 comments on commit feafc47

Please sign in to comment.