You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
675 B
32 lines
675 B
name: build
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: '12'
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
path: ./node_modules
|
|
key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('**/package.json') }}
|
|
restore-keys: |
|
|
cache-node-modules-
|
|
|
|
- name: Run ci
|
|
run: |
|
|
npm install
|
|
npm run ci
|