Skip to content

Commit 3b86c64

Browse files
build: adds build and test pipelines
1 parent df9e021 commit 3b86c64

File tree

159 files changed

+1746
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+1746
-34
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
on: [push, pull_request]
3+
4+
env:
5+
CYPRESS_INSTALL_BINARY: 0
6+
7+
jobs:
8+
www:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version-file: '.nvmrc'
19+
cache: 'yarn'
20+
21+
- name: Install dependencies
22+
uses: bahmutov/npm-install@v1
23+
24+
- name: Build
25+
run: yarn build www --configuration=production

.github/workflows/changelog.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Changes
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
pull-requests: write
7+
8+
env:
9+
CYPRESS_INSTALL_BINARY: 0
10+
11+
jobs:
12+
changelog:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'yarn'
24+
25+
- name: Install dependencies
26+
uses: bahmutov/npm-install@v1
27+
28+
- name: Get First Commit
29+
run: echo "FIRST_COMMIT=$(git merge-base remotes/origin/main --octopus)" >> $GITHUB_ENV
30+
31+
- name: Generate changelog
32+
id: CHANGELOG
33+
env:
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: npx auto changelog --no-git-commit --from=${{ env.FIRST_COMMIT }} --name
36+
37+
- name: Comment PR
38+
uses: thollander/actions-comment-pull-request@v2
39+
with:
40+
filePath: ./CHANGELOG.md
41+
comment_tag: changelog
42+
reactions: eyes
43+

.github/workflows/codeql.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Code Scanning
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
CodeQL-Build:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
security-events: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Initialize CodeQL
20+
uses: github/codeql-action/init@v2
21+
22+
- name: Autobuild
23+
uses: github/codeql-action/autobuild@v2
24+
25+
- name: Perform CodeQL Analysis
26+
uses: github/codeql-action/analyze@v2
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check Inclusive Language
2+
on: [issues, push]
3+
4+
jobs:
5+
check-language:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: check-language
9+
uses: benhayehudi/inclusive-language-github-action@master
10+
env:
11+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
on: [push]
3+
4+
env:
5+
CYPRESS_INSTALL_BINARY: 0
6+
7+
8+
jobs:
9+
Test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Setup node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version-file: '.nvmrc'
20+
cache: 'yarn'
21+
22+
- name: Install dependencies
23+
uses: bahmutov/npm-install@v1
24+
25+
- name: Track Main Branch
26+
if: github.ref != 'refs/heads/main'
27+
run: git branch --track main origin/main
28+
29+
- name: Lint Affected
30+
if: github.ref != 'refs/heads/main'
31+
run: yarn affected --target=lint
32+
33+
- name: Test Affected
34+
if: github.ref != 'refs/heads/main'
35+
run: yarn affected --target=test
36+
37+
- name: Lint All
38+
if: github.ref == 'refs/heads/main'
39+
run: yarn run-many --target=lint
40+
41+
- name: Test All
42+
if: github.ref == 'refs/heads/main'
43+
run: yarn run-many --target=test

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.16
1+
18
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

.yarn/install-state.gz

170 KB
Binary file not shown.

README.md

Lines changed: 4 additions & 1 deletion

nx.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
}
1010
}
1111
},
12+
"affected": {
13+
"defaultBase": "origin/main"
14+
},
1215
"targetDefaults": {
1316
"build": {
1417
"dependsOn": ["^build"],

package.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
{
22
"name": "angular-toolkit",
3+
"author": "Angular Toolkit <[email protected]>",
34
"version": "0.0.0",
45
"license": "MIT",
56
"private": true,
7+
"scripts": {
8+
"prepare": "husky install",
9+
"affected": "nx affected",
10+
"run-many": "nx run-many",
11+
"build": "nx build",
12+
"lint": "nx lint",
13+
"test": "nx test",
14+
"serve": "nx serve",
15+
"serve:ssr": "nx serve-ssr",
16+
"shipit": "auto shipit"
17+
},
618
"dependencies": {
719
"@angular/animations": "~15.2.0",
820
"@angular/common": "~15.2.0",
@@ -29,6 +41,10 @@
2941
"@angular/cli": "~15.2.0",
3042
"@angular/compiler-cli": "~15.2.0",
3143
"@angular/language-service": "~15.2.0",
44+
"@auto-it/conventional-commits": "^10.43.0",
45+
"@auto-it/first-time-contributor": "^10.43.0",
46+
"@auto-it/magic-zero": "^10.43.0",
47+
"@auto-it/omit-commits": "^10.43.0",
3248
"@commitlint/cli": "^17.4.4",
3349
"@commitlint/config-conventional": "^17.4.4",
3450
"@nguniversal/builders": "~15.1.0",
@@ -43,6 +59,7 @@
4359
"@types/node": "16.11.7",
4460
"@typescript-eslint/eslint-plugin": "^5.36.1",
4561
"@typescript-eslint/parser": "^5.36.1",
62+
"auto": "^10.43.0",
4663
"cypress": "^12.2.0",
4764
"eslint": "~8.15.0",
4865
"eslint-config-prettier": "8.1.0",
@@ -58,7 +75,12 @@
5875
"typescript": "~4.9.5"
5976
},
6077
"packageManager": "[email protected]",
61-
"scripts": {
62-
"prepare": "husky install"
78+
"repository": "majies/angular-toolkit",
79+
"auto": {
80+
"plugins": [
81+
"npm",
82+
["omit-commits", {"subject": ["Merge"]}]
83+
],
84+
"onlyPublishWithReleaseLabel": true
6385
}
6486
}

0 commit comments

Comments
 (0)