Skip to content

Commit

Permalink
Revert code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Aug 22, 2024
1 parent cc68430 commit cd855d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/actions/build-web/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,34 @@ inputs:
working_directory:
description: The working directory where the code will be built.
required: true
node_version:
description: The node version that will be used.
required: true

runs:
using: composite

steps:
- name: Use Node.js ${{ inputs.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ inputs.node_version }}

- run: npm ci
shell: bash
working-directory: ${{ inputs.working_directory }}

# Lint errors exists from SCC and will be worked on separately.
- run: npm run lint
shell: bash
working-directory: ${{ inputs.working_directory }}
continue-on-error: true

- run: npm run build
shell: bash
working-directory: ${{ inputs.working_directory }}

# Unit test is not configured in SCC and will be worked on separately.
- run: npm run test --if-present
shell: bash
working-directory: ${{ inputs.working_directory }}
6 changes: 1 addition & 5 deletions .github/workflows/app-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Building Web codebase
uses: ./.github/workflows/actions/build-web
with:
working_directory: ${{ env.WORKING_DIRECTORY }}
node_version: ${{ matrix.node-version }}

- name: Log in to the GHCR
uses: docker/login-action@v3
Expand Down

0 comments on commit cd855d1

Please sign in to comment.