chore(deps): update devdependencies (major) #3279
This file contains 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 | |
# Inspiration: | |
# https://github.com/alexdiliberto/ember-transformicons/blob/master/.github/workflows/ci.yml | |
on: | |
pull_request: | |
push: | |
# filtering branches here prevents duplicate builds from pull_request and push | |
branches: | |
- master | |
- main | |
env: | |
CI: true | |
jobs: | |
install_dependencies: | |
name: Install Dependencies | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- uses: ./.github/actions/pnpm | |
############################################################# | |
lint: | |
name: Lint JS | |
runs-on: ubuntu-latest | |
needs: ['install_dependencies'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- uses: ./.github/actions/pnpm | |
- run: pnpm lint:js | |
lint_docs: | |
name: Lint Docs | |
runs-on: ubuntu-latest | |
needs: ['install_dependencies'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- uses: ./.github/actions/pnpm | |
- run: pnpm lint:docs | |
lint_readme: | |
name: README up to date | |
runs-on: ubuntu-latest | |
needs: ['install_dependencies'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- uses: ./.github/actions/pnpm | |
- run: pnpm update && git diff --exit-code README.md docs/ | |
############################################################# | |
tests: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: ['install_dependencies'] | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- "14" | |
- "16" | |
- "18" | |
eslint: | |
- "eslint@8" | |
- "eslint@7" | |
- "eslint@6" | |
steps: | |
- uses: volta-cli/action@v4 | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: ./.github/actions/pnpm | |
- name: "Use ${{ matrix.eslint }}" | |
run: | | |
pnpm remove eslint | |
pnpm add ${{ matrix.eslint }} | |
- name: Test with ${{ matrix.node }} | |
run: | | |
echo "Matrix Info" | |
echo "Intended: ${{ matrix.node }}, ${{ matrix.eslint }}" | |
echo "node: $(node -v)" | |
echo "pnpm why eslint" | |
pnpm why eslint | |
pnpm test | |
smoke-tests: | |
name: ${{ matrix.script }} | |
runs-on: ubuntu-latest | |
needs: ['install_dependencies'] | |
strategy: | |
fail-fast: false | |
matrix: | |
# tese are all relative to the smoke-tests directory | |
script: | |
- integration/position-default | |
- integration/position-prettier | |
- integration/external-config-prettier | |
- examples/ember | |
- examples/typescript | |
- issue-reproductions/147 | |
- issue-reproductions/195 | |
- issue-reproductions/196 | |
- issue-reproductions/289 | |
- issue-reproductions/313 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- uses: ./.github/actions/pnpm | |
- run: ./scripts/smoke-test.sh smoke-tests/${{ matrix.script }} | |
# https://github.com/changesets/action | |
release: | |
name: Release | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
needs: | |
- tests | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: ./.github/actions/pnpm | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
# This expects you to have a script called release which does a build for your packages | |
# and calls changeset publish | |
publish: pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |