|
| 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 |
0 commit comments