Skip to content

Commit

Permalink
Write a workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrathore1 committed Feb 1, 2024
1 parent 0b4368e commit b16ee18
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/worker1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: BLOG'S WORKFLOW
run-name: Actions number ${{github.run_number}}

on:
push:
branches:
- "main"

jobs:
build_next_app:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v4

# - name: Login to docker hub
# uses: docker/login-action@v3
# with:
# username: ${{secrets.DOCKER_USERNAME}}
# password: ${{secrets.DOCKER_PWD}}

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

# - name: Push to Docker Hub
# uses : docker/build-push-action@v5

- name: Test and Build an application
run: |
npm run build
npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint && echo 'DONE🎊'"
},
"dependencies": {
"next": "14.1.0",
Expand Down

0 comments on commit b16ee18

Please sign in to comment.