Skip to content

Commit

Permalink
chore(deps): update node dependency versions (#27)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick authored Feb 19, 2024
1 parent 7d228d5 commit 1e9d513
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 251 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/flow-build-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
enable-unit-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
#enable-e2e-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}

code-style:
name: Code Style
uses: ./.github/workflows/zxc-compile-code.yaml
needs:
- code
with:
custom-job-label: Check
enable-code-style-check: true

analyze:
name: Analyze
uses: ./.github/workflows/zxc-code-analysis.yaml
Expand All @@ -58,7 +67,7 @@ jobs:
if: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' || github.event.inputs.enable-e2e-tests == 'true' }}
with:
custom-job-label: Source Code
enable-snyk-scan: ${{ github.event_name == 'push' || github.event.inputs.enable-snyk-scan == 'true' }}
#enable-snyk-scan: ${{ github.event_name == 'push' || github.event.inputs.enable-snyk-scan == 'true' }}
enable-codecov-analysis: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' || github.event.inputs.enable-e2e-tests == 'true' }}
secrets:
snyk-token: ${{ secrets.SNYK_TOKEN }}
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,20 @@ jobs:
name: Code
uses: ./.github/workflows/zxc-compile-code.yaml

code-style:
name: Code Style
uses: ./.github/workflows/zxc-compile-code.yaml
needs:
- build
with:
custom-job-label: Check
enable-code-style-check: true

unit-tests:
name: Unit Tests
uses: ./.github/workflows/zxc-compile-code.yaml
needs:
- build
- code-style
with:
custom-job-label: Standard
enable-unit-tests: true
Expand All @@ -49,7 +58,7 @@ jobs:
name: E2E Tests
uses: ./.github/workflows/zxc-compile-code.yaml
needs:
- build
- code-style
if: false
with:
custom-job-label: Standard
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/flow-pull-request-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,3 @@ jobs:
uses: aslafy-z/conventional-pr-title-action@a0b851005a0f82ac983a56ead5a8111c0d8e044a # v3.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

code-formatting:
name: Code Formatting
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: npm

- name: Install Dependencies
run: npm ci

- name: Check Formatting
run: npm run check
9 changes: 9 additions & 0 deletions .github/workflows/zxc-compile-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
type: boolean
required: false
default: false
enable-code-style-check:
description: "Code Style Check Enabled"
type: boolean
required: false
default: false
enable-e2e-tests:
description: "E2E Testing Enabled"
type: boolean
Expand Down Expand Up @@ -92,6 +97,10 @@ jobs:
id: npm-deps
run: npm ci

- name: Check Code Style
if: ${{ inputs.enable-code-style-check && !cancelled() && !failure() }}
run: npm run check

- name: Run Unit Tests
if: ${{ inputs.enable-unit-tests && !cancelled() && !failure() }}
run: npm test
Expand Down
Loading

0 comments on commit 1e9d513

Please sign in to comment.