Skip to content

install types for jest #44

install types for jest

install types for jest #44

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ Deployment/CI-CD ]
pull_request:
branches: [ Deployment/CI-CD ]
# Grant the necessary permission to workflow
permissions:
contents: read
pages: write
id-token: write
jobs:
# Test workflow
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
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: ${{ matrix.node-version }}
- name: Running Test
run: npm run test
# Build workflow
build:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
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: ${{ matrix.node-version }}
- name: Setup Github Pages
uses: actions/configure-pages@v5
- name: Build Expo project
run: npx expo export -p web
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
# Deployment workflow
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to github page
id: deployment
uses: actions/deploy-pages@v4