Skip to content

Commit

Permalink
Merge pull request #54 from rtucek/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
rtucek authored Sep 8, 2021
2 parents 3a38e61 + 47b7080 commit ba4c2c8
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 17 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Testing

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test-unit:
name: "CI Unit Testing"
timeout-minutes: 5
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
node:
- "14"
- "12"

steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Setup Node.js version ${{ matrix.node }}
uses: actions/setup-node@v2.4.0
with:
node-version: ${{ matrix.node }}
cache: "yarn"

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Unit Test
run: yarn run test:unit
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Setup Node.js
uses: actions/setup-node@v2.4.0
with:
cache: "yarn"

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Lint code
run: yarn run lint

- name: Check Lock File Changes
run: yarn && echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint."
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit ba4c2c8

Please sign in to comment.