diff --git a/.github/workflows/ci_pipeline.yml b/.github/workflows/ci_pipeline.yml index fe5b8f0..40ff1fb 100644 --- a/.github/workflows/ci_pipeline.yml +++ b/.github/workflows/ci_pipeline.yml @@ -14,32 +14,32 @@ env: APP_VERSION: ${{ github.ref_name }} jobs: -# lint-and-test: -# name: Run linter and tests -# runs-on: [self-hosted-linux] -# steps: -# - name: Checkout the repository -# uses: actions/checkout@v4 -# -# - name: Set up Node.js -# uses: actions/setup-node@v4 -# with: -# node-version: "20" -# cache: "npm" -# -# - name: Install dependencies -# run: npm install -# -# - name: Linting -# run: npm run lint -# -# - name: Build application -# run: npm run build + lint-and-test: + name: Run linter and tests + runs-on: [self-hosted-linux] + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install dependencies + run: npm install + + - name: Linting + run: npm run lint + + - name: Build application + run: npm run build build-and-publish: name: Create and push Docker image -# needs: lint-and-test - # if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') + needs: lint-and-test + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') runs-on: [self-hosted-linux] outputs: image_version: ${{ steps.meta.outputs.version }}