Browse Source

Update ci.yml

master
yuriy0803 2 years ago committed by GitHub
parent
commit
ababd15ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      .github/workflows/ci.yml

37
.github/workflows/ci.yml

@ -1,43 +1,40 @@
name: ci name: CI
on: on:
push: push:
branches: branches:
- master - main
pull_request: pull_request:
branches: branches:
- master - main
jobs: jobs:
ci: build-and-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎 - name: Checkout 🛎
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Setup Node.js 🏗 - name: Setup Node.js and Yarn 🏗
uses: actions/setup-node@v2.5.3 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
- name: Get yarn cache directory path 🛠 - name: Install Yarn 📦
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> $GITHUB_ENV run: npm install -g yarn
- name: Cache node_modules 📦 - name: Change to new-web directory 📂
uses: actions/cache@v2 run: cd open-etc-pool-friends/new-web
with:
path: ${{ env.YARN_CACHE_DIR }}
key: ubuntu-latest-yarn-${{ hashFiles('new-web/yarn.lock') }}
- name: Install dependencies 👨🏻💻 - name: Install Dependencies 👨🏻💻
working-directory: new-web
run: yarn install run: yarn install
- name: Run linter 👀 - name: Lint and Fix ✨
working-directory: new-web run: yarn lint-fix
run: yarn lint
- name: Build 🏗
run: yarn build
- name: Run tests 🧪 - name: Test 🧪
working-directory: new-web
run: yarn test run: yarn test

Loading…
Cancel
Save