-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c91cb9a
commit 90695c8
Showing
15 changed files
with
11,563 additions
and
32,408 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Setup node and pnpm | ||
description: Setup node and install dependencies using pnpm | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: volta-cli/action@v1 | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.11.0 | ||
run_install: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,43 +9,91 @@ on: | |
|
||
env: | ||
CI: true | ||
CACHE_PATH: '**/node_modules' | ||
|
||
jobs: | ||
install_dependencies: | ||
name: Install Dependencies | ||
name: Install | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
|
||
lint_js: | ||
name: Lint JS | ||
runs-on: ubuntu-latest | ||
needs: [install_dependencies] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
- name: ESLint | ||
run: pnpm lint | ||
|
||
lint_tests: | ||
name: Lint Tests | ||
runs-on: ubuntu-latest | ||
needs: [install_dependencies] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
- name: ESLint | ||
run: pnpm lint | ||
working-directory: tests | ||
|
||
commits: | ||
name: Commit Messages | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: volta-cli/action@v1 | ||
- uses: wagoid/[email protected] | ||
|
||
types_library: | ||
name: "Types: Library" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
needs: [install_dependencies] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
- run: tsc --build --clean && tsc --build | ||
continue-on-error: true | ||
|
||
types_tests: | ||
name: "Types: Tests" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
needs: [install_dependencies] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: volta-cli/action@v1 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_PATH }} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: "${{ runner.os }}-modules-" | ||
- run: yarn global add pnpm | ||
- run: yarn install | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
- run: tsc --build --clean && tsc --build | ||
continue-on-error: true | ||
working-directory: tests | ||
|
||
tests: | ||
name: "Tests" | ||
runs-on: ubuntu-latest | ||
needs: [install_dependencies] | ||
strategy: | ||
matrix: | ||
# all tests like this are slow | ||
slow-test: | ||
- basic conversion | ||
- snapshots conversion | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: volta-cli/action@v1 | ||
- uses: actions/[email protected] | ||
with: | ||
path: ${{ env.CACHE_PATH }} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
- run: | | ||
yarn install | ||
yarn global add pnpm | ||
yarn global add ember-cli | ||
pnpm add --global ember-cli | ||
- name: Tests | ||
run: yarn test | ||
working-directory: 'tests' | ||
run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}" | ||
|
||
tooling: | ||
name: Tooling | ||
|
@@ -55,16 +103,10 @@ jobs: | |
needs: [install_dependencies] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: volta-cli/action@v1 | ||
- uses: actions/[email protected] | ||
with: | ||
path: ${{ env.CACHE_PATH }} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- run: yarn install | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/pnpm | ||
- name: Semantic Release | ||
run: yarn publish:dry-run | ||
run: pnpm publish:dry-run | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -76,12 +118,10 @@ jobs: | |
needs: [tests] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: volta-cli/action@v1 | ||
- run: yarn install | ||
|
||
- uses: ./.github/actions/pnpm | ||
- name: Release | ||
run: yarn publish:release | ||
env: | ||
|
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.