fix: combination lang input (#157) #217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Caching dependencies | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Install dependencies | |
run: yarn | |
- name: Check lint | |
run: yarn lint | |
run-jest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Caching dependencies | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Install dependencies | |
run: yarn | |
- name: Run tests | |
run: yarn test | |
run-codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Caching dependencies | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Install dependencies | |
run: yarn | |
- name: Generate coverage report | |
run: yarn test:coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
run-cypress: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Caching dependencies | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Install dependencies | |
run: yarn | |
- name: Cypress run - blog | |
uses: cypress-io/github-action@v4 | |
with: | |
browser: chrome | |
working-directory: apps/blog | |
start: yarn dev | |
wait-on: 'http://localhost:3000' | |
record: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_BLOG_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Cypress run - resume | |
uses: cypress-io/github-action@v4 | |
with: | |
browser: chrome | |
working-directory: apps/resume | |
start: yarn dev | |
wait-on: 'http://localhost:3001' | |
record: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RESUME_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |