-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mxdvl/constants
- Loading branch information
Showing
16 changed files
with
6,898 additions
and
7,372 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 |
---|---|---|
|
@@ -27,11 +27,20 @@ jobs: | |
- name: Setup node | ||
uses: guardian/actions-setup-node@main | ||
|
||
- name: Cache .pnpm-store | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install pnpm | ||
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
run: pnpm install | ||
|
||
- name: Run unit tests | ||
run: 'yarn test --coverage --ci' | ||
run: pnpm test:ci | ||
|
||
- name: Report coverage | ||
uses: coverallsapp/github-action@master | ||
|
@@ -48,11 +57,20 @@ jobs: | |
- name: Setup node | ||
uses: guardian/actions-setup-node@main | ||
|
||
- name: Cache .pnpm-store | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install pnpm | ||
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
run: pnpm install | ||
|
||
- name: Lint files | ||
run: yarn lint | ||
run: pnpm lint | ||
types: | ||
name: Types | ||
needs: [docs] | ||
|
@@ -64,11 +82,20 @@ jobs: | |
- name: Setup node | ||
uses: guardian/actions-setup-node@main | ||
|
||
- name: Cache .pnpm-store | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install pnpm | ||
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
run: pnpm install | ||
|
||
- name: Check types | ||
run: yarn tsc | ||
run: pnpm tsc | ||
build: | ||
name: Build | ||
needs: [docs] | ||
|
@@ -82,11 +109,20 @@ jobs: | |
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Cache .pnpm-store | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install pnpm | ||
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
run: pnpm install | ||
|
||
- name: Build package | ||
run: yarn build | ||
run: pnpm build | ||
|
||
- name: Save build | ||
if: github.ref == 'refs/heads/main' | ||
|
@@ -109,8 +145,17 @@ jobs: | |
- name: Setup node | ||
uses: guardian/actions-setup-node@main | ||
|
||
- name: Cache .pnpm-store | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install pnpm | ||
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
run: pnpm install | ||
|
||
- name: Fetch build | ||
uses: actions/download-artifact@v2 | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn npm-run-all 'precommit:*' | ||
pnpm npm-run-all 'precommit:*' |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn npm-run-all 'prepush:*' | ||
pnpm npm-run-all 'prepush:*' |
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
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
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.