name: Build on: push: branches: [master] pull_request: branches: [master] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: '16.x' - uses: actions/cache@v2 with: path: | ~/.npm ~/.config/yarn/global key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node- - name: Install Yarn run: | npm install -g yarn yarn install - name: Run ESLint run: yarn lint - name: Run Prettier run: yarn format:check - name: Build run: yarn build