mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 23:32:54 +00:00
* GRS-1955: Using ES6 import/export in src files * GRS-1955: Using ES6 import/export in test files * GRS-1955: Using ES6 import/export in themes index.js * GRS-1955: Readding blank line at end of top-languages-card.js * feat: fix test es6 import errors This commit makes sure jest is set-up to support es6. It also fixes several test errors and sorts the imports. * test: update test node version This commit makes sure node 16 is used in the github actions. * refactor: run prettier Co-authored-by: rickstaa <rick.staa@outlook.com>
33 lines
524 B
YAML
33 lines
524 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "16.x"
|
|
|
|
- name: Install & Test
|
|
run: |
|
|
npm install
|
|
npm run test
|
|
|
|
- name: Run Prettier
|
|
run: |
|
|
npm run format:check
|
|
|
|
- name: Code Coverage
|
|
uses: codecov/codecov-action@v1
|