first commit (#133) #562
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: CI for ecomm-project for Dynamite | |
on: | |
push: | |
branches: ['develop'] | |
pull_request: | |
branches: ['develop'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run test --if-present | |
- run: npm run build --if-present | |
- run: npm run test:ci --if-present | |
- run: npm run lint --if-present | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env: | |
VITE_BASE_URL: ${{ secrets.VITE_BASE_URL }} |