Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
ci: add automated testing and coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaski committed Feb 11, 2021
1 parent 9c89ae0 commit 9c5c8c2
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
pull_request:

workflow_dispatch:

jobs:
test-and-coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: use node.js
uses: actions/setup-node@v1
with:
node-version: "10.x"

- name: cache node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci

- name: run tests
run: npm test
env:
SOUNDCLOUD_CLIENT_ID_V1: ${{ secrets.SOUNDCLOUD_CLIENT_ID_V1 }}
SOUNDCLOUD_CLIENT_ID_V2: ${{ secrets.SOUNDCLOUD_CLIENT_ID_V2 }}
SOUNDCLOUD_OAUTH_TOKEN: ${{ secrets.SOUNDCLOUD_OAUTH_TOKEN }}

- name: codecov
uses: codecov/codecov-action@v1
with:
verbose: true

0 comments on commit 9c5c8c2

Please sign in to comment.