Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit a722394

Browse files
committed
Setup GitHub actions
1 parent 5c83af0 commit a722394

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: weekly
7+
time: '11:00'
8+
open-pull-requests-limit: 5
9+
reviewers:
10+
- amarthadan

.github/workflows/main.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Continuous Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
types: [opened, synchronize, reopened]
9+
10+
env:
11+
TARGET_NODE_VERSION: '14.17.1'
12+
13+
jobs:
14+
documentation:
15+
name: Check documentation
16+
runs-on: ubuntu-latest
17+
# Don't run twice for a push within an internal PR
18+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
19+
steps:
20+
- name: Clone Airseeker
21+
uses: actions/checkout@v2
22+
- name: Check hyperlinks
23+
uses: gaurav-nelson/github-action-markdown-link-check@v1
24+
with:
25+
config-file: .github/workflows/mlc_config.json
26+
27+
lint-build-test:
28+
name: Lint, compile, test
29+
runs-on: ubuntu-latest
30+
# Don't run twice for a push within an internal PR
31+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
32+
steps:
33+
- name: Clone Airseeker
34+
uses: actions/checkout@v2
35+
- name: Setup Node
36+
uses: actions/setup-node@v2
37+
with:
38+
node-version: ${{ env.TARGET_NODE_VERSION }}
39+
cache: 'yarn'
40+
- name: Install Dependencies
41+
run: yarn install --frozen-lockfile
42+
- name: Lint
43+
run: yarn lint
44+
- name: Compile
45+
run: yarn build
46+
- name: Test
47+
run: yarn test
48+
49+
required-checks-passed:
50+
name: All required checks passed
51+
runs-on: ubuntu-latest
52+
needs: [documentation, lint-build-test]
53+
steps:
54+
- run: exit 0

.github/workflows/mlc_config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"retryOn429": true,
3+
"retryCount": 3,
4+
"fallbackRetryDelay": "10s"
5+
}

0 commit comments

Comments
 (0)