Skip to content

Commit

Permalink
reset pipeline conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikmonsen committed Nov 6, 2024
1 parent 8ef4c7b commit 526e680
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 526e680

Please sign in to comment.