Skip to content

Commit

Permalink
Update nextjs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
charan-happy authored May 23, 2024
1 parent 0b30397 commit 6604709
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: cd nextjs-app && npm install
- run: cd nextjs-app && npm run lint
# - run: cd nextjs-app && npm run test
- name: Cache node modules
uses: actions/cache@v2
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: install dependencies
run: cd nextjs-app && npm install
- name: linter
run: cd nextjs-app && npm run lint
- name: test
run: cd nextjs-app && npm test
- run: cd nextjs-app && npm install eslint prettier eslint-config-prettier eslint-plugin-prettier --save-dev

- name: Dockerhub Login
Expand Down

0 comments on commit 6604709

Please sign in to comment.