|
| 1 | +name: CI Build |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + - master |
| 8 | + - v* |
| 9 | + tags: |
| 10 | + - v* |
| 11 | + pull_request: |
| 12 | + |
| 13 | +jobs: |
| 14 | + test: |
| 15 | + name: Tests |
| 16 | + runs-on: ubuntu-latest |
| 17 | + |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - uses: actions/setup-node@v2 |
| 21 | + with: |
| 22 | + node-version: 6.x |
| 23 | + |
| 24 | + - run: yarn install --frozen-lockfile |
| 25 | + - run: yarn lint:hbs |
| 26 | + - run: yarn lint:js |
| 27 | + - run: yarn test |
| 28 | + |
| 29 | + floating-dependencies: |
| 30 | + name: "Floating Dependencies" |
| 31 | + runs-on: ubuntu-latest |
| 32 | + |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v2 |
| 35 | + - uses: actions/setup-node@v2 |
| 36 | + with: |
| 37 | + # not running Node.js 6 because of incompatibilities in transitive dependencies |
| 38 | + node-version: 12.x |
| 39 | + |
| 40 | + - run: yarn install --no-lockfile --ignore-engines |
| 41 | + - run: yarn test |
| 42 | + |
| 43 | + try-scenarios: |
| 44 | + name: "Try: ${{ matrix.ember-try-scenario }}" |
| 45 | + |
| 46 | + runs-on: ubuntu-latest |
| 47 | + |
| 48 | + needs: test |
| 49 | + |
| 50 | + strategy: |
| 51 | + matrix: |
| 52 | + ember-try-scenario: |
| 53 | + - ember-lts-2.18 |
| 54 | + - ember-lts-3.4 |
| 55 | + - ember-lts-3.20 |
| 56 | + - ember-lts-3.24 |
| 57 | + - ember-lts-3.28 |
| 58 | + # disabled due to incompatibility with Ember.js 4 |
| 59 | + # - ember-release |
| 60 | + # - ember-beta |
| 61 | + # - ember-canary |
| 62 | + - ember-default-with-jquery |
| 63 | + |
| 64 | + steps: |
| 65 | + - uses: actions/checkout@v2 |
| 66 | + - uses: actions/setup-node@v2 |
| 67 | + with: |
| 68 | + # not running Node.js 6 because of incompatibilities in transitive dependencies |
| 69 | + node-version: 12.x |
| 70 | + |
| 71 | + - name: install dependencies |
| 72 | + run: yarn install --frozen-lockfile |
| 73 | + - name: test |
| 74 | + run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup |
| 75 | + |
| 76 | + publish: |
| 77 | + name: Publish to npm |
| 78 | + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') |
| 79 | + runs-on: ubuntu-latest |
| 80 | + steps: |
| 81 | + - name: Checkout |
| 82 | + uses: actions/checkout@v2 |
| 83 | + |
| 84 | + - name: Install node |
| 85 | + uses: actions/setup-node@v2 |
| 86 | + with: |
| 87 | + node-version: 14.x |
| 88 | + registry-url: 'https://registry.npmjs.org' |
| 89 | + |
| 90 | + - name: install dependencies |
| 91 | + run: yarn install --frozen-lockfile |
| 92 | + |
| 93 | + - name: auto-dist-tag |
| 94 | + run: npx auto-dist-tag@1 --write |
| 95 | + |
| 96 | + - name: publish to npm |
| 97 | + run: npm publish |
| 98 | + env: |
| 99 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
0 commit comments