Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed May 11, 2021
1 parent 13474d3 commit 9a81883
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .circleci/config.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install linux dependencies
run: sudo apt-get update && sudo apt-get install -y libudev-dev libusb-1.0-0-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: actions/setup-node@main
with:
node-version: 12.x
- name: get yarn cache
if: always() && job.status != 'cancelled'
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
if: always() && job.status != 'cancelled'
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install dependencies
run: yarn install --production
- name: test
run: yarn test
- name: test no git diff
run: yarn test-no-git-diff
- name: codecov
run: npx codecov

0 comments on commit 9a81883

Please sign in to comment.