-
Notifications
You must be signed in to change notification settings - Fork 59
48 lines (41 loc) · 1.21 KB
/
app-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## Continuous Integration Workflow
name: Build Tests
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [release, staging, develop]
paths: 'src/app/**'
pull_request:
branches: [release, staging, develop]
paths: 'src/app/**'
# Target Branch Job
jobs:
Lint-Build:
# Execute on Ubuntu-Latest Distro
runs-on: ubuntu-latest
steps:
# Check Out Repository
- uses: actions/checkout@v1
# Install Node.js
- uses: actions/setup-node@v1.4.4
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: "@datature"
# Install your dependencies
- name: Installing
working-directory: ./src/app
run: npm install --legacy-peer-deps
# Run Eslint
- name: ESLint Check
working-directory: ./src/app
run: npm run github-action:eslint
# Run Prettier
- name: Prettier Check
working-directory: ./src/app
run: npm run github-action:prettier
# Build NextJS Project
- name: Building Nexus / NextJS
working-directory: ./src/app
run: npm run build:github