|
1 | 1 | name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ $default-branch ] |
| 6 | + pull_request: |
| 7 | + |
| 8 | +jobs: |
| 9 | + tests: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + node-version: [10.x] |
| 14 | + |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v2 |
| 17 | + - name: Use Node.js ${{ matrix.node-version }} |
| 18 | + uses: actions/setup-node@v1 |
| 19 | + with: |
| 20 | + node-version: ${{ matrix.node-version }} |
| 21 | + - name: Cache Node.js modules |
| 22 | + uses: actions/cache@v2 |
| 23 | + with: |
| 24 | + path: ~/.npm |
| 25 | + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} |
| 26 | + restore-keys: | |
| 27 | + ${{ runner.OS }}-node- |
| 28 | + ${{ runner.OS }}- |
| 29 | + - run: npm i -g npm@7 |
| 30 | + - run: npm ci |
| 31 | + - run: npm run lint |
| 32 | + - run: npx percy exec -- npm run test:ember |
| 33 | + env: |
| 34 | + CI: true |
| 35 | + PERCY_TOKEN: ce5e8d59a35851ea07032b21668a6718e8daf4ac8da2f4f3fdcafc8c89dd0a0f |
| 36 | + |
| 37 | + ember_floating_dependencies: |
| 38 | + runs-on: ubuntu-latest |
| 39 | + strategy: |
| 40 | + matrix: |
| 41 | + node-version: [10.x] |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v2 |
| 45 | + - name: Use Node.js ${{ matrix.node-version }} |
| 46 | + uses: actions/setup-node@v1 |
| 47 | + with: |
| 48 | + node-version: ${{ matrix.node-version }} |
| 49 | + - run: npm i -g npm@7 |
| 50 | + - run: npm install --no-package-lock |
| 51 | + - run: npm run test:ember |
| 52 | + env: |
| 53 | + CI: true |
| 54 | + |
| 55 | + ember_try_3_16: |
| 56 | + runs-on: ubuntu-latest |
| 57 | + strategy: |
| 58 | + matrix: |
| 59 | + node-version: [10.x] |
| 60 | + |
| 61 | + steps: |
| 62 | + - uses: actions/checkout@v2 |
| 63 | + - name: Use Node.js ${{ matrix.node-version }} |
| 64 | + uses: actions/setup-node@v1 |
| 65 | + with: |
| 66 | + node-version: ${{ matrix.node-version }} |
| 67 | + - run: npm i -g npm@7 |
| 68 | + - run: npm ci |
| 69 | + - run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
| 70 | + env: |
| 71 | + CI: true |
| 72 | + EMBER_TRY_SCENARIO: ember-lts-3.16 |
| 73 | + |
| 74 | + ember_try_release: |
| 75 | + runs-on: ubuntu-latest |
| 76 | + strategy: |
| 77 | + matrix: |
| 78 | + node-version: [10.x] |
| 79 | + |
| 80 | + steps: |
| 81 | + - uses: actions/checkout@v2 |
| 82 | + - name: Use Node.js ${{ matrix.node-version }} |
| 83 | + uses: actions/setup-node@v1 |
| 84 | + with: |
| 85 | + node-version: ${{ matrix.node-version }} |
| 86 | + - run: npm i -g npm@7 |
| 87 | + - run: npm ci |
| 88 | + - run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
| 89 | + env: |
| 90 | + CI: true |
| 91 | + EMBER_TRY_SCENARIO: ember-release |
| 92 | + |
| 93 | + ember_try_beta: |
| 94 | + runs-on: ubuntu-latest |
| 95 | + strategy: |
| 96 | + matrix: |
| 97 | + node-version: [10.x] |
| 98 | + |
| 99 | + steps: |
| 100 | + - uses: actions/checkout@v2 |
| 101 | + - name: Use Node.js ${{ matrix.node-version }} |
| 102 | + uses: actions/setup-node@v1 |
| 103 | + with: |
| 104 | + node-version: ${{ matrix.node-version }} |
| 105 | + - run: npm i -g npm@7 |
| 106 | + - run: npm ci |
| 107 | + - run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
| 108 | + env: |
| 109 | + CI: true |
| 110 | + EMBER_TRY_SCENARIO: ember-beta |
| 111 | + |
| 112 | + ember_try_canary: |
| 113 | + runs-on: ubuntu-latest |
| 114 | + strategy: |
| 115 | + matrix: |
| 116 | + node-version: [10.x] |
| 117 | + |
| 118 | + steps: |
| 119 | + - uses: actions/checkout@v2 |
| 120 | + - name: Use Node.js ${{ matrix.node-version }} |
| 121 | + uses: actions/setup-node@v1 |
| 122 | + with: |
| 123 | + node-version: ${{ matrix.node-version }} |
| 124 | + - run: npm i -g npm@7 |
| 125 | + - run: npm ci |
| 126 | + - run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
| 127 | + env: |
| 128 | + CI: true |
| 129 | + EMBER_TRY_SCENARIO: ember-canary |
| 130 | + |
| 131 | + ember_try_default_with_jquery: |
| 132 | + runs-on: ubuntu-latest |
| 133 | + strategy: |
| 134 | + matrix: |
| 135 | + node-version: [10.x] |
| 136 | + |
| 137 | + steps: |
| 138 | + - uses: actions/checkout@v2 |
| 139 | + - name: Use Node.js ${{ matrix.node-version }} |
| 140 | + uses: actions/setup-node@v1 |
| 141 | + with: |
| 142 | + node-version: ${{ matrix.node-version }} |
| 143 | + - run: npm i -g npm@7 |
| 144 | + - run: npm ci |
| 145 | + - run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
| 146 | + env: |
| 147 | + CI: true |
| 148 | + EMBER_TRY_SCENARIO: ember-default-with-jquery |
| 149 | + |
| 150 | + ember_try_classic: |
| 151 | + runs-on: ubuntu-latest |
| 152 | + strategy: |
| 153 | + matrix: |
| 154 | + node-version: [10.x] |
| 155 | + |
| 156 | + steps: |
| 157 | + - uses: actions/checkout@v2 |
| 158 | + - name: Use Node.js ${{ matrix.node-version }} |
| 159 | + uses: actions/setup-node@v1 |
| 160 | + with: |
| 161 | + node-version: ${{ matrix.node-version }} |
| 162 | + - run: npm i -g npm@7 |
| 163 | + - run: npm ci |
| 164 | + - run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
| 165 | + env: |
| 166 | + CI: true |
| 167 | + EMBER_TRY_SCENARIO: ember-classic |
0 commit comments