Skip to content

Commit

Permalink
build: enable CI
Browse files Browse the repository at this point in the history
Enables CI via GitHub actions. Additionally it uses the action
`bahmutov/npm-install` to reduce the process of installing
dependencies by ~40%.

- - - - - - - - - - - - - - - - - - - -

Close #25
  • Loading branch information
molant authored May 7, 2021
1 parent 1191485 commit bc9caa2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
tests:
name: Install & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
uses: bahmutov/npm-install@HEAD

- name: Test
run: yarn test
env:
CI: true
6 changes: 1 addition & 5 deletions scripts/tasks/create-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ const { existsSync } = require('fs');
const { stringify } = require('json5');
const globby = require('globby');

const IGNORE_LIST = [
'api/locales',
'api/remote',
'api/synopsis',
];
const IGNORE_LIST = ['api/locales', 'api/remote', 'api/synopsis'];

/**
* @typedef Entry
Expand Down

0 comments on commit bc9caa2

Please sign in to comment.