Skip to content

Feature/pipeline branch #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on: [push, pull_request]

env:
CYPRESS_INSTALL_BINARY: 0

jobs:
www:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Build
run: yarn build www --configuration=production
43 changes: 43 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Changes
on: [pull_request]

permissions:
contents: read
pull-requests: write

env:
CYPRESS_INSTALL_BINARY: 0

jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Get First Commit
run: echo "FIRST_COMMIT=$(git merge-base remotes/origin/main --octopus)" >> $GITHUB_ENV

- name: Generate changelog
id: CHANGELOG
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx auto changelog --no-git-commit --from=${{ env.FIRST_COMMIT }} --name

- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: ./CHANGELOG.md
comment_tag: changelog
reactions: eyes

26 changes: 26 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Code Scanning
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
CodeQL-Build:
runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
11 changes: 11 additions & 0 deletions .github/workflows/inclusive-language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check Inclusive Language
on: [issues, push]

jobs:
check-language:
runs-on: ubuntu-latest
steps:
- name: check-language
uses: benhayehudi/inclusive-language-github-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test
on: [push]

env:
CYPRESS_INSTALL_BINARY: 0


jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Track Main Branch
if: github.ref != 'refs/heads/main'
run: git branch --track main origin/main

- name: Lint Affected
if: github.ref != 'refs/heads/main'
run: yarn affected --target=lint

- name: Test Affected
if: github.ref != 'refs/heads/main'
run: yarn affected --target=test

- name: Lint All
if: github.ref == 'refs/heads/main'
run: yarn run-many --target=lint

- name: Test All
if: github.ref == 'refs/heads/main'
run: yarn run-many --target=test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# AngularToolkit
[![Check Inclusive Language](https://github.com/majies/angular-toolkit/actions/workflows/inclusive-language.yml/badge.svg?branch=main)](https://github.com/majies/angular-toolkit/actions/workflows/inclusive-language.yml)
[![Code Scanning](https://github.com/majies/angular-toolkit/actions/workflows/codeql.yml/badge.svg)](https://github.com/majies/angular-toolkit/actions/workflows/codeql.yml)
[![Test](https://github.com/majies/angular-toolkit/actions/workflows/test.yml/badge.svg)](https://github.com/majies/angular-toolkit/actions/workflows/test.yml)
[![Build](https://github.com/majies/angular-toolkit/actions/workflows/build.yml/badge.svg)](https://github.com/majies/angular-toolkit/actions/workflows/build.yml)

<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>

Expand Down
3 changes: 3 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
}
}
},
"affected": {
"defaultBase": "origin/main"
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
Expand Down
26 changes: 24 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"name": "angular-toolkit",
"author": "Angular Toolkit <[email protected]>",
"version": "0.0.0",
"license": "MIT",
"private": true,
"scripts": {
"prepare": "husky install",
"affected": "nx affected",
"run-many": "nx run-many",
"build": "nx build",
"lint": "nx lint",
"test": "nx test",
"serve": "nx serve",
"serve:ssr": "nx serve-ssr",
"shipit": "auto shipit"
},
"dependencies": {
"@angular/animations": "~15.2.0",
"@angular/common": "~15.2.0",
Expand All @@ -29,6 +41,10 @@
"@angular/cli": "~15.2.0",
"@angular/compiler-cli": "~15.2.0",
"@angular/language-service": "~15.2.0",
"@auto-it/conventional-commits": "^10.43.0",
"@auto-it/first-time-contributor": "^10.43.0",
"@auto-it/magic-zero": "^10.43.0",
"@auto-it/omit-commits": "^10.43.0",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@nguniversal/builders": "~15.1.0",
Expand All @@ -43,6 +59,7 @@
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"auto": "^10.43.0",
"cypress": "^12.2.0",
"eslint": "~8.15.0",
"eslint-config-prettier": "8.1.0",
Expand All @@ -58,7 +75,12 @@
"typescript": "~4.9.5"
},
"packageManager": "[email protected]",
"scripts": {
"prepare": "husky install"
"repository": "majies/angular-toolkit",
"auto": {
"plugins": [
"npm",
["omit-commits", {"subject": ["Merge"]}]
],
"onlyPublishWithReleaseLabel": true
}
}
Loading