generated from c-hive/js-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 53
46 lines (42 loc) · 1.07 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Run
on: [push]
env:
node_version: "12.x"
jobs:
run-action:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}
- name: Cache node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**//package-lock.json') }}
restore-keys: |
${{ runner.OS }}--
- name: Install JS dependencies
run: ls package-lock.json && npm install || yarn install
- name: Build
run: npm run build
- name: Run action
uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
age: '1 second'
skip-tags: true
skip-recent: 1
create-test-artifact:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- name: Create artifact for testing
uses: actions/upload-artifact@master
with:
name: test-artifacts
path: ./