Skip to content

Commit ebf68b3

Browse files
committed
chore: add workspace-lint and format:check ci steps
1 parent 529e739 commit ebf68b3

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
name: Node.js CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
jobs:
610
build:
711
runs-on: ubuntu-latest
812

913
steps:
1014
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
1215
with:
13-
node-version: '16.x'
16+
fetch-depth: 0
17+
- uses: nrwl/nx-set-shas@v2
1418
- run: npm ci
19+
- run: npx nx workspace-lint
20+
- run: npx nx format:check
1521
- run: npx nx run-many --target=lint --all
16-
- run: npx nx run-many --target=build --all
1722
- run: npx nx run-many --target=test --all
23+
- run: npx nx run dev-server:build
24+
- run: npm run build:prod
1825
env:
1926
CI: true

apps/dev-server/jest.config.js renamed to apps/dev-server/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
module.exports = {
1+
/* eslint-disable */
2+
export default {
23
displayName: 'dev-server',
34
preset: '../../jest.preset.js',
45
globals: {

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"npmScope": "npl",
44
"affected": {
5-
"defaultBase": "master"
5+
"defaultBase": "main"
66
},
77
"implicitDependencies": {
88
"package.json": {

0 commit comments

Comments
 (0)