Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: main

on: push

jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
COVERALLS_REPO_TOKEN: '${{ secrets.COVERALLS_REPO_TOKEN }}'
COVERALLS_GIT_COMMIT: '${{ github.sha }}'
COVERALLS_GIT_BRANCH: '${{ github.ref }}'

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Turnstyle
uses: softprops/turnstyle@v1
timeout-minutes: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Yarn Cache 💾
id: yarn-cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules

- name: Install Node.js 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
uses: actions/setup-node@v2
with:
node-version: '10'

- run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'

- name: Build and Test 👷
run: |
yarn build:src
yarn test:unit
env:
CI: true

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.