ci.yml
1 name: CI 2 3 on: 4 push: 5 branches: ['master'] 6 pull_request: 7 types: [opened, synchronize] 8 9 jobs: 10 build: 11 name: Lint 12 timeout-minutes: 15 13 runs-on: ubuntu-latest 14 15 steps: 16 - name: Check out code 17 uses: actions/checkout@v3 18 with: 19 fetch-depth: 2 20 21 - name: Setup Node.js environment 22 uses: actions/setup-node@v3 23 with: 24 node-version: 18 25 cache: 'yarn' 26 27 - name: Install dependencies 28 run: yarn 29 30 - name: Lint 31 run: yarn lint