Skip to content

Commit 7762d0c

Browse files
chore(ci): Migrate to github actions
1 parent bfe15d7 commit 7762d0c

File tree

4 files changed

+96
-33
lines changed

4 files changed

+96
-33
lines changed

.github/workflows/ci.yml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: 'CI: UIRouter Core'
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_angular:
27+
name: Downstream Angular 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 --group angular
40+
41+
test_downstream_react:
42+
name: Downstream React projects still work
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Prepare to Test Downstream Projects
47+
run: |
48+
npm config set scripts-prepend-node-path auto
49+
git config --global user.email [email protected]
50+
git config --global user.name uirouter_github_actions
51+
- name: Install Dependencies
52+
run: yarn install --pure-lockfile
53+
- name: Test Downstream Projects
54+
run: yarn test:downstream --group react
55+
56+
test_downstream_angularjs:
57+
name: Downstream AngularJS projects still work
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- name: Prepare to Test Downstream Projects
62+
run: |
63+
npm config set scripts-prepend-node-path auto
64+
git config --global user.email [email protected]
65+
git config --global user.name uirouter_github_actions
66+
- name: Install Dependencies
67+
run: yarn install --pure-lockfile
68+
- name: Test Downstream Projects
69+
run: yarn test:downstream --group angularjs
70+
71+
test_downstream_other:
72+
name: Other Downstream projects still work
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v2
76+
- name: Prepare to Test Downstream Projects
77+
run: |
78+
npm config set scripts-prepend-node-path auto
79+
git config --global user.email [email protected]
80+
git config --global user.name uirouter_github_actions
81+
- name: Install Dependencies
82+
run: yarn install --pure-lockfile
83+
- name: Test Downstream Projects
84+
run: yarn test:downstream --group other

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ idea-out
2121
*.ipr
2222
*.iws
2323

24+
!.github
25+
2426
# generate doc to _doc; copy to proper gh-pages dir
2527
_doc
28+

.travis.yml

-24
This file was deleted.

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# UI-Router Core  [![Build Status](https://travis-ci.org/ui-router/core.svg?branch=master)](https://travis-ci.org/ui-router/core)
1+
# UI-Router Core  [![Build Status](https://github.com/ui-router/core/workflows/CI:%20UIRouter%20Core/badge.svg)](https://github.com/ui-router/core/actions?query=workflow%3A%22CI:%20UIRouter%20Core%22)
22

3-
UI-Router core provides client-side [Single Page Application](https://en.wikipedia.org/wiki/Single-page_application)
3+
UI-Router core provides client-side [Single Page Application](https://en.wikipedia.org/wiki/Single-page_application)
44
routing for JavaScript.
55
This core is framework agnostic.
66
It is used to build
77
[UI-Router for Angular 1](//ui-router.github.io/ng1),
8-
[UI-Router for Angular 2](//ui-router.github.io/ng2), and
8+
[UI-Router for Angular 2](//ui-router.github.io/ng2), and
99
[UI-Router React](//ui-router.github.io/react).
1010

1111
## SPA Routing
1212

13-
Routing frameworks for SPAs update the browser's URL as the user navigates through the app. Conversely, this allows
14-
changes to the browser's URL to drive navigation through the app, thus allowing the user to create a bookmark to a
13+
Routing frameworks for SPAs update the browser's URL as the user navigates through the app. Conversely, this allows
14+
changes to the browser's URL to drive navigation through the app, thus allowing the user to create a bookmark to a
1515
location deep within the SPA.
1616

17-
UI-Router applications are modeled as a hierarchical tree of states. UI-Router provides a
18-
[*state machine*](https://en.wikipedia.org/wiki/Finite-state_machine) to manage the transitions between those
19-
application states in a transaction-like manner.
17+
UI-Router applications are modeled as a hierarchical tree of states. UI-Router provides a
18+
[_state machine_](https://en.wikipedia.org/wiki/Finite-state_machine) to manage the transitions between those
19+
application states in a transaction-like manner.
2020

2121
## Features
2222

@@ -33,7 +33,7 @@ UI-Router Core provides the following features:
3333
- Multiple Named Views
3434
- Flexible URLs and parameters
3535
- Path, Query, and non-URL parameters
36-
- Typed parameters
36+
- Typed parameters
3737
- Built in: `int`, `string`, `date`, `json`
3838
- Custom: define your own encoding/decoding
3939
- Optional or required parameters

0 commit comments

Comments
 (0)