37
loading...
This website collects cookies to deliver better user experience
“Continuous Integration doesn’t get rid of bugs, but it does make them dramatically easier to find and remove.” - Martin Fowler, Chief Scientist, ThoughtWorks
Actions
tab which is indicated below. Actions
tab, you will see several workflow templates. Typically, there are four categories which are shown below. You can select the suggested workflow or scroll down to Continuous Integration workflows to pick one based on the tech stack used in the project. Set up this workflow
.name: Node CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Linter
run: npm run lint
- name: Prettier Format
run: npm run format
name [optional] - used to describe what the workflow is doing
on - lists the events which trigger the workflow. In this case, the actions are triggered when someone pushes code directly to the repository or when a pull request is made. Here is a list of all events which can trigger workflows.
jobs - this section is used to define the actions that will be executed in response to the aforementioned events.
Details
button. You will be able to see what exactly went wrong and at which point, as shown below.