Skip to content

Commit 2dd03a4

Browse files
committed
replace Travis CI with Github Actions
1 parent 4957639 commit 2dd03a4

File tree

2 files changed

+46
-20
lines changed

2 files changed

+46
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
on: [push, pull_request, workflow_dispatch]
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: '15.x'
14+
15+
- name: Get Yarn cache dir
16+
id: yarn-cache-dir
17+
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
- uses: actions/cache@v2
19+
with:
20+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-yarn-
24+
25+
- name: Download ultimate-crosscode-typedefs
26+
uses: actions/checkout@v2
27+
with:
28+
repository: dmitmel/ultimate-crosscode-typedefs
29+
path: ultimate-crosscode-typedefs
30+
- name: Set up ultimate-crosscode-typedefs
31+
working-directory: ultimate-crosscode-typedefs
32+
run: |
33+
yarn install --production --no-lockfile
34+
yarn link
35+
36+
- name: Install dependencies
37+
run: |
38+
yarn link ultimate-crosscode-typedefs
39+
yarn install --frozen-lockfile
40+
41+
- name: Build
42+
run: yarn run build
43+
- name: Lint
44+
run: yarn run lint
45+
- name: Check formatting
46+
run: yarn run check-fmt

.travis.yml

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

0 commit comments

Comments
 (0)