Skip to content

Bump @types/node from 20.14.12 to 22.7.3 in /app #1063

Bump @types/node from 20.14.12 to 22.7.3 in /app

Bump @types/node from 20.14.12 to 22.7.3 in /app #1063

Workflow file for this run

name: Test
on: [push]
jobs:
app:
env:
NODE_VERSION: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION}}
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v2
with:
path: |
node_modules
key: app-node-v${{ env.NODE_VERSION }}-deps-${{ github.workspace }}-yarn.lock
- name: Yarn install
run: yarn --cwd app install --frozen-lockfile
- name: Yarn Test
run: yarn --cwd app test
- name: Prettier && ESLint
run: if yarn --cwd app lint |& grep -E "(error|warn)"; then exit 1; fi
- name: Build Test
run: yarn --cwd app build
backend:
services:
postgres:
image: postgres:15.1-alpine
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: portfolio_test
env:
GO_VERSION: 1.21.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Env
run: |
echo "DB_USER=postgres" >> $GITHUB_ENV
echo "DB_PASSWORD=postgres" >> $GITHUB_ENV
echo "DB_HOST=localhost" >> $GITHUB_ENV
echo "DB_PORT=5432" >> $GITHUB_ENV
echo "DB_NAME=portfolio_test" >> $GITHUB_ENV
echo "DB_SSLMODE=disable" >> $GITHUB_ENV
echo "DB_TRY_LIMIT=1" >> $GITHUB_ENV
echo "DB_MIGRATIONS_DIR=../db/migrations" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: cd backend && go get .
- name: Build
run: cd backend && go build -v ./...
- name: Test with the Go CLI
run: cd backend && go test ./...
admin:
env:
NODE_VERSION: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION}}
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v2
with:
path: |
node_modules
key: admin-node-v${{ env.NODE_VERSION }}-deps-${{ github.workspace }}-yarn.lock
- name: Yarn install
run: yarn --cwd admin install --frozen-lockfile
# - name: Yarn Test
# run: yarn --cwd admin test
- name: Prettier && ESLint
run: if yarn --cwd admin lint |& grep -E "(error|warn)"; then exit 1; fi
- name: Build Test
run: yarn --cwd admin build
env:
BACKEND_HOST: http://localhost:8080
updater:
env:
NODE_VERSION: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION}}
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v2
with:
path: |
node_modules
key: updater-node-v${{ env.NODE_VERSION }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Yarn install
run: yarn --cwd updater install
- name: Prettier && ESLint
run: if yarn --cwd updater lint |& grep -E "(error|warn)"; then exit 1; fi
- name: Yarn Build
run: yarn --cwd updater build
# - name: Yarn test
# run: if yarn --cwd updater test |& grep -E "failed"; then exit 1; fi