Merge pull request #29 from NavMapLabs/Feature/auth-modal #74
This file contains 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: Node.js CI | |
on: | |
# push: | |
# branches: [ Deployment/CI-CD_RenderUnitTest_HL] | |
# pull_request: | |
# branches: [ Deployment/CI-CD_RenderUnitTest_HL ] | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
env: | |
NODE_VERSION: 20.17.x | |
# Grant the necessary permission to workflow | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
# Test workflow | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Branch | |
uses: actions/checkout@v2 | |
# use self-define steps to load env | |
- name: Load Node.js | |
uses: ./.github/actions/setup-and-install | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Running Test | |
run: npm run test | |
env: | |
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }} | |
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }} | |
FIREBASE_STORAGE_BUCKET: ${{ secrets.FIREBASE_STORAGE_BUCKET }} | |
FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.FIREBASE_MESSAGING_SENDER_ID }} | |
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }} | |
FIREBASE_MEASUREMENT_ID: ${{ secrets.FIREBASE_MEASUREMENT_ID }} |