mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Enabled CI for Renovate branches
no issue
This commit is contained in:
parent
3281f75945
commit
c9a54e25ab
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -4,29 +4,19 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- 'renovate/*'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [ '10' ]
|
node: [ 10 ]
|
||||||
name: Node ${{ matrix.node }}
|
name: Node ${{ matrix.node }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Cache node modules
|
- uses: actions/setup-node@v1
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: node_modules
|
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.OS }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.OS }}-build-
|
|
||||||
${{ runner.OS }}-
|
|
||||||
- name: Setup node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- run: npm install yarn
|
- run: yarn
|
||||||
- run: yarn install
|
|
||||||
- run: yarn test:ci
|
- run: yarn test:ci
|
||||||
|
Loading…
Reference in New Issue
Block a user