Merge pull request #204 from adopted-ember-addons/release-preview #323
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| jobs: | |
| test: | |
| name: 'Tests' | |
| env: | |
| CI: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.12.3 | |
| - name: Install node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Cache node modules | |
| uses: actions/cache@v3 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-lint-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: pnpm install | |
| run: pnpm install | |
| - name: lint js | |
| run: pnpm run lint | |
| - name: test | |
| run: pnpm run test | |
| compat: | |
| name: Compatibility | |
| env: | |
| CI: true | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| lib: | |
| - ember-changeset | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.12.3 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Install deps | |
| run: pnpm install | |
| - name: 'Test: ${{ matrix.lib }}' | |
| run: pnpm run test-external:${{ matrix.lib }} |