generated from kontent-ai/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 3
18 lines (17 loc) · 873 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# For more information do to https://kontent-ai.github.io/ci-and-automation/ci-and-automation
name: "Build" # Represents the name of the whole action.
on: # Specifies the section where we describe our build triggers.
push: # The action runs with push.
pull_request: # The action runs with a pull request.
schedule: # Specifies the section where we describe the schedule of running the action.
- cron: '0 18 * * 1' # The CRON expression describes when to run the action.
jobs: # Specifies the section where we describe our jobs.
Build: # Specific job section.
runs-on: ubuntu-latest # Describes the environment.
steps: # Specifies the section where we describe the job's steps.
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Check code format
run: npm run fmt:check