|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + - next |
| 8 | + - 'release-*' |
| 9 | + - 'v*' |
| 10 | + pull_request: {} |
| 11 | + schedule: |
| 12 | + - cron: '0 3 * * *' # daily, at 3am |
| 13 | + |
| 14 | +jobs: |
| 15 | + lint: |
| 16 | + name: Linting |
| 17 | + runs-on: ubuntu-latest |
| 18 | + timeout-minutes: 10 |
| 19 | + |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v2 |
| 22 | + - uses: volta-cli/action@v1 |
| 23 | + |
| 24 | + - name: install dependencies |
| 25 | + run: yarn install --frozen-lockfile |
| 26 | + |
| 27 | + - run: yarn eslint |
| 28 | + - run: yarn problems |
| 29 | + |
| 30 | + test-chrome: |
| 31 | + name: Chrome |
| 32 | + runs-on: ubuntu-latest |
| 33 | + timeout-minutes: 10 |
| 34 | + |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v2 |
| 37 | + - uses: volta-cli/action@v1 |
| 38 | + |
| 39 | + - name: install dependencies |
| 40 | + run: yarn install --frozen-lockfile |
| 41 | + |
| 42 | + - run: yarn test |
| 43 | + |
| 44 | + test-node: |
| 45 | + name: Node |
| 46 | + runs-on: ubuntu-latest |
| 47 | + timeout-minutes: 10 |
| 48 | + |
| 49 | + steps: |
| 50 | + - uses: actions/checkout@v2 |
| 51 | + - uses: volta-cli/action@v1 |
| 52 | + |
| 53 | + - name: install dependencies |
| 54 | + run: yarn install --frozen-lockfile |
| 55 | + |
| 56 | + - run: yarn ember build |
| 57 | + - run: yarn test:node |
| 58 | + |
| 59 | + test-browserstack: |
| 60 | + name: Browserstack |
| 61 | + runs-on: ubuntu-latest |
| 62 | + timeout-minutes: 20 |
| 63 | + |
| 64 | + env: |
| 65 | + BROWSERSTACK_USERNAME: glimmervm1 |
| 66 | + BROWSERSTACK_ACCESS_KEY: 7DFjbGLxYRsXWmc8tzeh |
| 67 | + # can be removed once https://github.com/kategengler/ember-cli-browserstack/pull/31 lands |
| 68 | + CI_JOB_ID: ${{ github.run_id }} |
| 69 | + |
| 70 | + steps: |
| 71 | + - uses: actions/checkout@v2 |
| 72 | + - uses: volta-cli/action@v1 |
| 73 | + |
| 74 | + - name: install dependencies |
| 75 | + run: yarn install --frozen-lockfile |
| 76 | + |
| 77 | + - run: yarn browserstack:connect |
| 78 | + - run: yarn test:browserstack |
| 79 | + - run: yarn browserstack:results |
| 80 | + - run: yarn browserstack:disconnect |
| 81 | + |
| 82 | + test-types: |
| 83 | + name: Types |
| 84 | + runs-on: ubuntu-latest |
| 85 | + timeout-minutes: 10 |
| 86 | + |
| 87 | + steps: |
| 88 | + - uses: actions/checkout@v2 |
| 89 | + - uses: volta-cli/action@v1 |
| 90 | + |
| 91 | + - name: install dependencies |
| 92 | + run: yarn install --frozen-lockfile |
| 93 | + |
| 94 | + - run: yarn build |
| 95 | + - run: yarn test:types |
| 96 | + |
| 97 | + floating-dependencies: |
| 98 | + name: Floating Dependencies |
| 99 | + runs-on: ubuntu-latest |
| 100 | + timeout-minutes: 10 |
| 101 | + |
| 102 | + steps: |
| 103 | + - uses: actions/checkout@v2 |
| 104 | + - uses: volta-cli/action@v1 |
| 105 | + with: |
| 106 | + node-version: 12.x |
| 107 | + |
| 108 | + - name: install dependencies |
| 109 | + run: yarn install --no-lockfile |
| 110 | + |
| 111 | + - run: yarn test |
0 commit comments