Skip to content

Commit 492e86c

Browse files
MI-39: Added workflow
1 parent a5c2106 commit 492e86c

26 files changed

+12858
-12799
lines changed

.github/dependabot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'monthly'
7+
open-pull-requests-limit: 10
8+
commit-message:
9+
prefix: 'TCS-3'
10+
groups:
11+
minor-and-patch:
12+
applies-to: version-updates
13+
patterns:
14+
- '*'
15+
update-types:
16+
- 'minor'
17+
- 'patch'

.github/workflows/pull-request.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**' # Trigger on all branches
7+
8+
permissions:
9+
actions: read
10+
contents: read
11+
12+
jobs:
13+
code-quality:
14+
name: 🕵️‍♀️ Code Quality Check
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
ref: ${{ github.event.pull_request.head.ref }}
22+
23+
- name: Fetch target
24+
run: git fetch origin ${{ github.event.pull_request.base.ref }}
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version-file: '.nvmrc'
29+
cache: 'npm'
30+
31+
- name: Install
32+
run: npm ci
33+
34+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
35+
uses: nrwl/nx-set-shas@v4
36+
37+
- name: ⚙️ Run Tests
38+
run: npx nx affected -t lint test build

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.10.0

.prettierignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Add files here to ignore them from prettier formatting
2+
**/dist
3+
**/coverage
4+
5+
# nx format always picks this up and reformats
6+
# this file even if there's no issues, so we ignore it
7+
tsconfig.base.json
8+
9+
# lock file is autogenerated
10+
pnpm-lock.yaml
11+
package-lock.json
12+
13+
/.nx/cache

nx.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
99
"!{projectRoot}/tsconfig.spec.json"
1010
],
11-
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"]
11+
"sharedGlobals": ["{workspaceRoot}/.github/workflows/pull-request.yml"]
1212
},
1313
"plugins": [
1414
{

0 commit comments

Comments
 (0)