Skip to content

Commit

Permalink
test: Setup github actions, remove travis (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Oct 16, 2021
1 parent 241365d commit cb3c55a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 39 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,21 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: setup browser
uses: browser-actions/setup-chrome@latest
- name: install dependencies
run: yarn install
- name: test
run: yarn test:ci
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
14
16
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions karma.conf.js
Expand Up @@ -28,8 +28,8 @@ module.exports = function (config) {
browsers: ["Chrome"],
customLaunchers: {
ChromeCI: {
base: `${process.env["TRAVIS"] ? "ChromeHeadless" : "Chrome"}`,
flags: process.env["TRAVIS"] ? ["--no-sandbox"] : [],
base: "ChromeHeadless",
flags: ["--no-sandbox", "--disable-gpu"],
},
},
singleRun: false,
Expand Down

0 comments on commit cb3c55a

Please sign in to comment.