Skip to content

Commit

Permalink
Merge pull request #96 from zakhenry/ci/swap-travis-for-github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhenry authored Sep 7, 2022
2 parents cb8cacc + a526b4e commit 894b03a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 26 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# GitHub Actions docs
# https://help.github.com/en/articles/about-github-actions
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI

on: [push]

jobs:
build:
# Machine environment:
# https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: Use Node.js 16.14.2
uses: actions/setup-node@v1
with:
node-version: 16.14.2
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --no-progress
- name: Format check
run: yarn prettier:check
- name: Build Lib
run: yarn build
- name: Test Lib
run: yarn test
- name: Check Readme
run: yarn readme:check
- name: Release
if: contains('refs/heads/master', github.ref)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit 894b03a

Please sign in to comment.