Skip to content

Commit a526b4e

Browse files
committed
fix(CI): move from shutdown travis ci to github actions
1 parent cb8cacc commit a526b4e

File tree

2 files changed

+36
-26
lines changed

2 files changed

+36
-26
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# GitHub Actions docs
2+
# https://help.github.com/en/articles/about-github-actions
3+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
4+
name: CI
5+
6+
on: [push]
7+
8+
jobs:
9+
build:
10+
# Machine environment:
11+
# https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts
12+
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
13+
runs-on: ubuntu-18.04
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Use Node.js 16.14.2
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 16.14.2
21+
- name: Install dependencies
22+
run: yarn --frozen-lockfile --non-interactive --no-progress
23+
- name: Format check
24+
run: yarn prettier:check
25+
- name: Build Lib
26+
run: yarn build
27+
- name: Test Lib
28+
run: yarn test
29+
- name: Check Readme
30+
run: yarn readme:check
31+
- name: Release
32+
if: contains('refs/heads/master', github.ref)
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
run: npx semantic-release

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)