Skip to content

Commit adfad96

Browse files
committed
Setup inital actions
1 parent d30c2ed commit adfad96

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/main.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: CI
42

5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
73
on:
84
push:
95
branches: [ master ]
106
pull_request:
117
branches: [ master ]
128

13-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
149
jobs:
15-
# This workflow contains a single job called "build"
1610
build:
17-
# The type of runner that the job will run on
1811
runs-on: ubuntu-latest
1912

20-
# Steps represent a sequence of tasks that will be executed as part of the job
2113
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
24-
25-
# Runs a single command using the runners shell
26-
- name: Run a one-line script
27-
run: echo Hello, world!
28-
29-
# Runs a set of commands using the runners shell
30-
- name: Run a multi-line script
31-
run: |
32-
echo Add other actions to build,
33-
echo test, and deploy your project.
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 10.x
20+
21+
- name: Install
22+
run: |
23+
yarn install --cwd example --frozen-lockfile
24+
yarn install --frozen-lockfile
25+
26+
- name: Lint
27+
run: yarn lint
28+
29+
- name: Typescript
30+
run: yarn test --coverage
31+
32+
- name: Build
33+
run: yarn prepare

0 commit comments

Comments
 (0)