Skip to content

Merge pull request #7 from Teneff/bugfix #34

Merge pull request #7 from Teneff/bugfix

Merge pull request #7 from Teneff/bugfix #34

Workflow file for this run

name: Build
on:
push:
branches-ignore:
# Dependabot branches are always Pull Requests.
# We don't need to run CI twice (push+pull_request)
- 'dependabot/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "18.x"
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn install --frozen-lockfile
- name: Check formatting
run: yarn lint
- name: Test
run: yarn test --coverage
- name: Publish coverage
run: yarn codecov --disable=gcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Build package
run: yarn build