Skip to content

FRON-9136 Add the "clearCache" method (#73) #173

FRON-9136 Add the "clearCache" method (#73)

FRON-9136 Add the "clearCache" method (#73) #173

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout (pull_request)
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout (push)
if: github.event_name == 'push'
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn test -- --ci --coverage
- run: yarn run lint
- name: Set ENV for codeclimate (pull_request)
run: |
echo "GIT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "GIT_COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
if: github.event_name == 'pull_request'
- name: Set ENV for codeclimate (push)
run: |
echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "GIT_COMMIT_SHA=$GITHUB_SHA" >> $GITHUB_ENV
if: github.event_name == 'push'
- name: Code Climate Test Reporter
uses: paambaati/codeclimate-action@v8.0.0
env:
CC_TEST_REPORTER_ID: e603a31c2988a01bae194f33de60d6f6f17b68cc8f36e5479f987e34d2186988
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn run build