diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 95a3910..b78b353 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -2,14 +2,15 @@ name: ESLint on: [push, pull_request] jobs: build: + defaults: + run: + working-directory: web/src/main/javascript runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v2 with: node-version: 20.12.2 - - name: Navigate to frontend directory - run: cd web/src/main/javascript - name: Install node modules run: cd web/src/main/javascript && npm install - name: Run ESLint diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 1133068..d448fb9 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -1,18 +1,19 @@ -name: Application CI +name: Frontend CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: web/src/main/javascript steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v2 with: node-version: 20.12.2 - - name: Navigate to frontend directory - run: cd web/src/main/javascript - name: Install node modules run: npm install - - name: Build application + - name: Build frontend run: npm run build - name: Run unit tests run: npm test \ No newline at end of file