Skip to content

Commit

Permalink
ci(unit-tests): remove unnecessary docker step and bump node version …
Browse files Browse the repository at this point in the history
…to 20 (#169)
  • Loading branch information
antoinezanardi committed May 15, 2023
1 parent bb94ad9 commit 97df00b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -36,7 +36,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -57,7 +57,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -78,7 +78,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -89,12 +89,8 @@ jobs:
with:
path: node_modules
key: ${{ runner.os }}-npm-v3-${{ hashFiles('package-lock.json') }}
- name: Start Docker containers 🐳
run: npm run docker:test:start
- name: Unit tests 🧪
run: npm run test:unit:cov
- name: Stop Docker containers 🐳
run: npm run docker:test:stop
e2e-tests:
name: E2E Tests ⚗️
runs-on: ubuntu-latest
Expand All @@ -103,7 +99,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -128,7 +124,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand Down Expand Up @@ -159,7 +155,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -60,7 +60,7 @@ jobs:
steps:
- name: Checkout GitHub repository 📡
uses: actions/checkout@v3
- name: Setup NodeJS v18 ⚙️
- name: Setup NodeJS v20 ⚙️
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20

0 comments on commit 97df00b

Please sign in to comment.