-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 929 Bytes
/
run_test.yml
File metadata and controls
41 lines (34 loc) · 929 Bytes
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
name: Tests
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
run:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Download CSSSR actions
uses: actions/checkout@v2
with:
repository: CSSSR/actions
ssh-key: ${{ secrets.DOWNLOAD_ACTIONS_SSH_KEY }}
path: actions
- uses: actions/checkout@v2
with:
path: new_blog
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v2-beta
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@csssr'
- name: Install dependencies
working-directory: new_blog
run: yarn --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_REGISTRY_TOKEN }}
- name: Run Tests
working-directory: new_blog
run: yarn jest