|
| 1 | +name: CI |
| 2 | +on: [push, pull_request] |
| 3 | +jobs: |
| 4 | + test: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + name: Test |
| 7 | + steps: |
| 8 | + - name: Checkout |
| 9 | + uses: actions/checkout@v2 |
| 10 | + - name: Set up node |
| 11 | + uses: actions/setup-node@v2 |
| 12 | + with: |
| 13 | + node-version: 16 |
| 14 | + cache: yarn |
| 15 | + - name: Install dependencies |
| 16 | + run: yarn install |
| 17 | + - name: Test |
| 18 | + run: yarn test |
| 19 | + - name: Release dry-run |
| 20 | + run: yarn test:release |
| 21 | + env: |
| 22 | + GH_TOKEN: ${{ secrets.GH_TOKEN }} |
| 23 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 24 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 25 | + - name: Upload codecov |
| 26 | + uses: codecov/codecov-action@v1 |
| 27 | + with: |
| 28 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 29 | + files: ./coverage/ember/lcov.info,./coverage/node/lcov.info |
| 30 | + fail_ci_if_error: true |
| 31 | + regression: |
| 32 | + if: github.ref != 'refs/heads/master' |
| 33 | + needs: test |
| 34 | + runs-on: ubuntu-latest |
| 35 | + name: Regression test - ${{ matrix.ember_try_scenario }} - Experimental ${{ matrix.experimental }} |
| 36 | + strategy: |
| 37 | + matrix: |
| 38 | + ember_try_scenario: |
| 39 | + - ember-lts-3.24 |
| 40 | + - ember-lts-3.28 |
| 41 | + - ember-release |
| 42 | + - ember-beta |
| 43 | + - ember-classic |
| 44 | + experimental: [false] |
| 45 | + include: |
| 46 | + - ember_try_scenario: ember-canary |
| 47 | + experimental: true |
| 48 | + - ember_try_scenario: embroider-safe |
| 49 | + experimental: true |
| 50 | + - ember_try_scenario: embroider-optimized |
| 51 | + experimental: true |
| 52 | + continue-on-error: ${{ matrix.experimental }} |
| 53 | + timeout-minutes: 5 |
| 54 | + steps: |
| 55 | + - name: Checkout |
| 56 | + uses: actions/checkout@v2 |
| 57 | + - name: Set up node |
| 58 | + uses: actions/setup-node@v2 |
| 59 | + with: |
| 60 | + node-version: 16 |
| 61 | + cache: yarn |
| 62 | + - name: Install dependencies |
| 63 | + run: yarn install |
| 64 | + - name: Test |
| 65 | + run: yarn ember try:one ${{ matrix.ember_try_scenario }} |
| 66 | + release: |
| 67 | + if: github.ref == 'refs/heads/master' |
| 68 | + needs: [test] |
| 69 | + runs-on: ubuntu-latest |
| 70 | + name: Release |
| 71 | + steps: |
| 72 | + - name: Checkout |
| 73 | + uses: actions/checkout@v2 |
| 74 | + with: |
| 75 | + fetch-depth: 0 |
| 76 | + token: ${{ secrets.GH_TOKEN }} |
| 77 | + - name: Set up node |
| 78 | + uses: actions/setup-node@v2 |
| 79 | + with: |
| 80 | + node-version: 16 |
| 81 | + registry-url: 'https://registry.npmjs.org' |
| 82 | + - name: Configure CI Git User |
| 83 | + run: | |
| 84 | + git config --global user.email adrigzr@users.noreply.github.com |
| 85 | + git config --global user.name adrigzr |
| 86 | + - name: Install dependencies |
| 87 | + run: yarn install |
| 88 | + - name: Release |
| 89 | + run: yarn semantic-release |
| 90 | + env: |
| 91 | + HUSKY: 0 |
| 92 | + GH_TOKEN: ${{ secrets.GH_TOKEN }} |
| 93 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 94 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
0 commit comments