Update README.md #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: π CI/CD | |
| on: | |
| push: | |
| branches: | |
| - main # π Adjust this to your main branch name | |
| pull_request: | |
| branches: | |
| - main # π Adjust this to your main branch name | |
| jobs: | |
| build: | |
| runs-on: windows-latest # π₯οΈ Use 'windows-latest' for Windows environment | |
| env: | |
| NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }} | |
| steps: | |
| - name: π Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: π οΈ Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - name: π¦ Install dependencies | |
| run: npm install | |
| - name: π Load environment variables | |
| run: echo "NEXT_PUBLIC_FIREBASE_API_KEY=${NEXT_PUBLIC_FIREBASE_API_KEY}" >> $GITHUB_ENV | |
| - name: ποΈ Build | |
| run: npm run build | |
| - name: π§ͺ Test | |
| run: npm test -- test |