Skip to content

chore: add docker

chore: add docker #136

Workflow file for this run

name: CI Pull Request
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: ⚙️ Setup node
uses: actions/setup-node@v1
with:
node-version: 18.16.0
- name: 🧠 Cache node_modules
uses: actions/cache@v2
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 📦️ Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: 🧪 Run Jest tests
run: yarn test
- name: 👘 Run linter
run: yarn lint
- name: 💬 Comment with Test Coverage
uses: dkershner6/jest-coverage-commenter-action@v1
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
test_command: 'yarn test:cov'
- name: 🤖 Cypress run
uses: cypress-io/github-action@v5.0.5
with:
build: npm run build
start: npm start