From b88498d06bbf75b0ad1fec573a18be19f765f065 Mon Sep 17 00:00:00 2001 From: vladokuskov Date: Sat, 4 May 2024 12:04:14 +0300 Subject: [PATCH] 13 Updated ci/cd --- .github/workflows/auto.yml | 2 +- .github/workflows/prod.yml | 7 ++++++- .github/workflows/staging.yml | 7 ++++++- docker/production/Dockerfile | 2 -- docker/staging/Dockerfile | 2 -- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto.yml b/.github/workflows/auto.yml index 0b04e58..6b4540d 100644 --- a/.github/workflows/auto.yml +++ b/.github/workflows/auto.yml @@ -22,7 +22,7 @@ jobs: run: yarn install - name: Lint code ✍️️ - run: yarn lint️ + run: yarn lint - name: Run tests ✅ run: yarn test diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 95572f5..5d54186 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -9,6 +9,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Use Node.js 21.5.0 + uses: actions/setup-node@v3 + with: + node-version: '21.5.0' + - name: Checkout repository 🔎 uses: actions/checkout@v3 @@ -16,7 +21,7 @@ jobs: run: yarn install - name: Lint code ✍️️ - run: yarn lint️ + run: yarn lint - name: Run tests ✅ run: yarn test diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index eb62572..5f7d08d 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -9,6 +9,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Use Node.js 21.5.0 + uses: actions/setup-node@v3 + with: + node-version: '21.5.0' + - name: Checkout repository 🔎 uses: actions/checkout@v3 @@ -16,7 +21,7 @@ jobs: run: yarn install - name: Lint code ✍️️ - run: yarn lint️ + run: yarn lint - name: Run tests ✅ run: yarn test diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 0cb51f8..90cb0c1 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -9,8 +9,6 @@ FROM base as builder WORKDIR /app COPY . . RUN yarn install -RUN yarn lint -RUN yarn test RUN yarn build FROM base as production diff --git a/docker/staging/Dockerfile b/docker/staging/Dockerfile index d7b8f88..eb68ecc 100644 --- a/docker/staging/Dockerfile +++ b/docker/staging/Dockerfile @@ -9,8 +9,6 @@ FROM base as builder WORKDIR /app COPY . . RUN yarn install -RUN yarn lint -RUN yarn test RUN yarn build FROM base as stage