-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from falsepopsky/dev
ci: tests with node versions 18 and 20
- Loading branch information
Showing
8 changed files
with
446 additions
and
367 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,77 @@ | ||
name: CD | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
PNPM_VERSION: 8.9.2 | ||
|
||
jobs: | ||
lint: | ||
name: ⬣ Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run lint | ||
run: pnpm lint | ||
test: | ||
name: 🧪 Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run tests | ||
run: pnpm test | ||
build: | ||
name: 🏗️ Build | ||
runs-on: ubuntu-latest | ||
needs: [lint, test] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run build | ||
run: pnpm build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Release | |
|
||
on: | ||
workflow_run: | ||
workflows: ["CI"] | ||
workflows: ["CD"] | ||
types: | ||
- completed | ||
branches: | ||
|
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 +1 @@ | ||
v18.18.2 | ||
v20.9.0 |
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.