Skip to content

Update babel monorepo to v7.25.7 #159

Update babel monorepo to v7.25.7

Update babel monorepo to v7.25.7 #159

name: Web Vitals CI - Unit Tests & Code Coverage
on:
create:
branches:
- '**'
pull_request:
branches:
- '**'
push:
branches:
- latest
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16']
env:
CI: true
LOG_LEVEL: 'error'
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GIT_COMMIT_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# Sets the GIT_BRANCH env variable on a push event which occurs when we merge a PR. ${GITHUB_REF##*/} is the shorthand syntax for getting the short branch name
- name: Set GIT_BRANCH Environment Variable For Push Event
if: ${{ github.event_name == 'push' }}
run: echo "GIT_BRANCH=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
# Sets the GIT_BRANCH env variable on a pull request event which occurs when we create/update a PR. ${{ github.head_ref }} is the syntax for getting the short branch name
- name: Set GIT_BRANCH Environment Variable For Pull Request Event
if: ${{ github.event_name == 'pull_request' }}
run: echo "GIT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
- name: Install Node Modules
run: |
echo ${GITHUB_REF##*/}
./scripts/installNodeModules.sh
- name: Unit Tests
run: yarn test:ci