chore: persists wireit cache in CI; no rerun of test on master
This commit is contained in:
parent
3cc3d2960f
commit
187a7e54b4
2 changed files with 5 additions and 40 deletions
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
|
|
@ -6,52 +6,13 @@ on:
|
|||
- master
|
||||
|
||||
jobs:
|
||||
browser-tests:
|
||||
name: Browser tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.x
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install --ci
|
||||
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
|
||||
- name: Test
|
||||
run: npm run test:browser
|
||||
|
||||
node-tests:
|
||||
name: Node tests
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x]
|
||||
os: [ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install --ci
|
||||
|
||||
- name: Test
|
||||
run: npm run test:node
|
||||
|
||||
release:
|
||||
# Prevents changesets action from creating a PR on forks
|
||||
if: github.repository == 'ing-bank/lion'
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google/wireit@setup-github-actions-caching/v1
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
|
|
|
|||
4
.github/workflows/verify.yml
vendored
4
.github/workflows/verify.yml
vendored
|
|
@ -7,6 +7,7 @@ jobs:
|
|||
name: Verify changes
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google/wireit@setup-github-actions-caching/v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Sanity check
|
||||
|
|
@ -30,6 +31,7 @@ jobs:
|
|||
name: Browser tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google/wireit@setup-github-actions-caching/v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node 16.x
|
||||
|
|
@ -53,6 +55,7 @@ jobs:
|
|||
node-version: [16.x]
|
||||
os: [ubuntu-latest]
|
||||
steps:
|
||||
- uses: google/wireit@setup-github-actions-caching/v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node ${{ matrix.node-version }}
|
||||
|
|
@ -75,6 +78,7 @@ jobs:
|
|||
node-version: [16.x]
|
||||
os: [windows-latest]
|
||||
steps:
|
||||
- uses: google/wireit@setup-github-actions-caching/v1
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node ${{ matrix.node-version }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue