Skip to content

Commit

Permalink
fix GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
peppescg committed Dec 16, 2024
1 parent 8743976 commit 509a6cd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 32 deletions.
28 changes: 0 additions & 28 deletions .github/action/setup.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Setup Action"
permissions: write-all
on:
workflow_call:

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Print Current Directory
run: pwd

- name: List Files for Debugging
run: ls -R

- name: Set up Node.js
uses: actions/setup-node@23755b521f87533c8ed7f8fb13674f9021579e34 # v4
with:
node-version: "22"

- name: Install dependencies
run: npm ci
9 changes: 5 additions & 4 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,29 @@ on:
jobs:
setup:
name: Setup Dependencies
uses: ./.github/action/setup.yml
uses: ./.github/workflows/setup.yml

lint:
name: ESLint Check
runs-on: ubuntu-latest
needs: setup
steps:
- name: List Files for Debugging
run: ls -R
- name: Print Current Directory
run: pwd
- name: Run Linter
run: npm run lint

tsc:
name: TS Types Check
runs-on: ubuntu-latest
needs: setup
steps:
- name: Run Tsc
run: npm run type-check

build:
name: Build App Check
runs-on: ubuntu-latest
needs: setup
steps:
- name: Build App
run: npm run build

0 comments on commit 509a6cd

Please sign in to comment.