-
Notifications
You must be signed in to change notification settings - Fork 0
Github Actions 설정 for Lint & Test
Seogeurim edited this page Nov 29, 2021
·
2 revisions
run-lint.yml
name: Run Lint
on:
push:
branches: [main]
pull_request:
branches: [dev]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, and lint
working-directory: ./
run: |
yarn install --frozen-lockfile
yarn lint
run-test.yml
name: Run Test
on:
push:
branches: [main]
pull_request:
branches: [dev]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, and test
working-directory: ./
run: |
yarn install --frozen-lockfile
yarn test