Skip to content

Commit b6bc76e

Browse files
Merge pull request Hacker0x01#322 from Hacker0x01/try-building-ci
Try building the site on CI
2 parents a371d33 + fcda446 commit b6bc76e

File tree

2 files changed

+40
-16
lines changed

2 files changed

+40
-16
lines changed

.github/workflows/test-suite.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test suite
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [master]
9+
10+
jobs:
11+
update:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
16+
- name: Get yarn cache directory path
17+
id: yarn-cache-dir-path
18+
run: echo "::set-output name=dir::$(yarn cache dir)"
19+
20+
- uses: actions/cache@v2
21+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+
with:
23+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
24+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-yarn-
27+
28+
- name: Set Node.js
29+
uses: actions/setup-node@master
30+
with:
31+
node-version: 10.x
32+
33+
- name: Install dependencies
34+
run: yarn install
35+
36+
- name: Lint
37+
run: yarn run lint
38+
39+
- name: Build
40+
run: yarn run build

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)