Skip to content

Commit acf8e31

Browse files
author
v 1 r t l
authored
Create main.yml
1 parent 1e0c22c commit acf8e31

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
build:
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+
25+
- name: Setup PNPM
26+
uses: pnpm/action-setup@v1.2.0
27+
with:
28+
version: 5.3.0
29+
run_install: true
30+
- name: Build packages
31+
run: npm run build
32+
- name: Run tests
33+
run: npm run test
34+
- name: Codecov
35+
uses: codecov/codecov-action@v1.0.10

0 commit comments

Comments
 (0)