Skip to content

Commit 027f516

Browse files
authored
Create main.yml
1 parent a69c778 commit 027f516

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
test:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
# Sets up node environment specified in .nvmrc
25+
- uses: cypress-io/github-action@v2
26+
with:
27+
node-version: '15.0.1'
28+
- name: Cache multiple paths
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
node_modules
33+
yarn-cache
34+
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
35+
- name: install npm dependencies
36+
run: yarn config set cache-folder `pwd`/yarn-cache && yarn install --frozen-lockfile
37+
- name: build
38+
run: yarn run build:test
39+
- name: eslint
40+
run: yarn run lint
41+
- name: test
42+
run: yarn run test:cypress:run:report
43+
- name: coverage
44+
run: yarn run test:coverage
45+

0 commit comments

Comments
 (0)