Debian Codegraph @

babel-preset-modules/.github/workflows/main.yml

raw symbols SCIP
1 name: Node CI
2
3 on: [push]
4
5 jobs:
6 build:
7
8 runs-on: ubuntu-latest
9
10 #strategy:
11 # matrix:
12 # node-version: [8.x, 10.x, 12.x]
13
14 steps:
15 - name: Checkout
16 uses: actions/checkout@v2
17 - name: Use Node.js 14.x
18 uses: actions/setup-node@v1
19 with:
20 node-version: 14.x
21 - name: Get Yarn cache directory
22 id: yarn-cache-dir-path
23 run: echo "::set-output name=dir::$(yarn cache dir)"
24 - name: Use Yarn cache
25 uses: actions/cache@v2
26 id: yarn-cache
27 with:
28 path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
29 key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
30 restore-keys: |
31 ${{ runner.os }}-yarn-
32 - name: Install
33 run: yarn --prefer-offline --frozen-lockfile --non-interactive --silent
34 - name: Build
35 run: yarn build
36 - name: Test
37 run: yarn test --ci
38 env:
39 CI: true
40 - name: saucelabs
41 run: yarn run test:browser
42 env:
43 CI: true
44 SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
45 SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}