Skip to content

Commit cc5a894

Browse files
chore(ci): Migrate to github actions (#693)
1 parent 8f96a7e commit cc5a894

File tree

3 files changed

+41
-28
lines changed

3 files changed

+41
-28
lines changed

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'CI: UIRouter for Angular'
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
name: 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: 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: 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

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ _bundles
1515
lib
1616
lib-esm
1717
dist
18+
19+
!.github

.travis.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)