-
Notifications
You must be signed in to change notification settings - Fork 19
Mohamad Bader AA #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Integration | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: task-1 | ||
|
|
||
| steps: | ||
| - name: Check out code | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: "24" | ||
| cache: "npm" | ||
| cache-dependency-path: task-1/package-lock.json | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good use of Do you know the difference between this and |
||
|
|
||
| - name: Run Linter | ||
| run: npm run lint | ||
|
|
||
| - name: Run Unit Tests | ||
| run: npm test | ||
|
|
||
| - name: Build React App | ||
| run: npm run build | ||
|
|
||
| - name: Upload Build Artifact | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: weather-app-dist | ||
| path: task-1/dist/ | ||
| retention-days: 5 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👏 This is really good choice. Imagining that you have multiple PR merges and big teams, you should think about storage, because it has a cost and limit. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you choose to add this configuration?