Skip to content

Commit

Permalink
Update runs-on to Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecasal committed Jan 10, 2024
1 parent 3587c32 commit 887836c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -30,12 +30,15 @@ jobs:
- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🖼 Build icons
run: npm run gen-svg-sprite

- name: 🔬 Lint
run: npm run lint

typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -48,12 +51,15 @@ jobs:
- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🖼 Build icons
run: npm run gen-svg-sprite

- name: 🔎 Type check
run: npm run typecheck --if-present

vitest:
name: ⚡ Vitest
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -69,12 +75,15 @@ jobs:
- name: 🏄 Copy test env vars
run: cp .env.example .env

- name: 🖼 Build icons
run: npm run gen-svg-sprite

- name: ⚡ Run vitest
run: npm run test -- --coverage

playwright:
name: 🎭 Playwright
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: ⬇️ Checkout repo
Expand Down Expand Up @@ -120,7 +129,7 @@ jobs:

deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [lint, typecheck, vitest, playwright]
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
Expand Down
2 changes: 1 addition & 1 deletion other/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is moved to the root directory before building the image

# base node image
FROM node:20.11-bullseye-slim as base
FROM node:20-bookworm-slim as base

# set for base and all layer that inherit from it
ENV NODE_ENV production
Expand Down

0 comments on commit 887836c

Please sign in to comment.