Skip to content

Commit e2e41ff

Browse files
chore(gha): Create a multi-job CI workflow
1 parent bae05cf commit e2e41ff

File tree

4 files changed

+39
-78
lines changed

4 files changed

+39
-78
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'CI: UIRouter for AngularJS'
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
name: Run Unit Tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Install Dependencies
12+
run: yarn install --pure-lockfile
13+
- name: Run Tests
14+
run: yarn test
15+
16+
docs:
17+
name: Verify that docs can be generated
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install Dependencies
22+
run: yarn install --pure-lockfile
23+
- name: Generate Docs
24+
run: yarn docs
25+
26+
test_downstream:
27+
name: Verify that downstream projects still work
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Prepare to Test Downstream Projects
32+
run: |
33+
npm config set scripts-prepend-node-path auto
34+
git config --global user.email [email protected]
35+
git config --global user.name uirouter_github_actions
36+
- name: Install Dependencies
37+
run: yarn install --pure-lockfile
38+
- name: Test Downstream Projects
39+
run: yarn test:downstream

.github/workflows/docs.yml

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

.github/workflows/downstream.yml

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

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)