Loading tutorials
on:, jobs:, and steps: keys from the previous chapter. Here you decide which events start your lint and format workflow.2 min readmain. It assumes you already have lint and format:check scripts in package.json, know basic YAML, and have opened a pull request on GitHub. The examples use ESLint and Prettier3 min readnpm run lint does, and have a lint script and a format check script like the ones from the earlier chapters. You will learn how a process exit code becomes a red or green check on a pull request.3 min readactions/checkout, actions/setup-node, npm ci, and a package-lock.json file. You should also know that each GitHub-hosted job starts on a fresh virtual machine.2 min readpull_request and push triggers do and can read a YAML workflow file.3 min readlint and format:check scripts in package.json. Here you split the single job into two jobs that run side by side.2 min readlint, format:check) and a working lint workflow from earlier chapters. It also assumes you know how permissions limits the GITHUB_TOKEN.2 min read