Skip to content

Fix GitHub Actions deploy on push to main (branch name changed) #151

Fix GitHub Actions deploy on push to main (branch name changed)

Fix GitHub Actions deploy on push to main (branch name changed) #151

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
jobs:
functions:
runs-on: ubuntu-latest
env:
working-directory: functions/
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
working-directory: ${{ env.working-directory }}
- name: Run tests
run: npm test
working-directory: ${{ env.working-directory }}
- name: Run lint
run: npm run lint
working-directory: ${{ env.working-directory }}
- uses: codecov/codecov-action@v4
name: "Upload Code Coverage"
with:
files: ${{ env.working-directory }}/coverage/lcov.info