Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run REPL build on internal branches or when specific label is set #4156

Merged
merged 2 commits into from Jun 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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