Skip to content

Commit

Permalink
refactor: new workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Apr 7, 2024
1 parent a7cf2b8 commit 2d5587c
Show file tree
Hide file tree
Showing 153 changed files with 148,804 additions and 12,982 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

42 changes: 0 additions & 42 deletions .eslintrc.json

This file was deleted.

16 changes: 0 additions & 16 deletions .github/dependabot.yml

This file was deleted.

47 changes: 19 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,36 @@ name: CI

on:
push:
branches: ['master', 'develop']
branches:
- main
pull_request:
branches: ['master', 'develop']

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read

jobs:
test:
main:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read

steps:
- name: Checkout Code Repository
uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: nrwl/nx-set-shas@v3
with:
main-branch-name: develop
# Connect your workspace on nx.app and uncomment this to enable task distribution.
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
# - run: yarn nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"

- name: Setup Node
uses: actions/setup-node@v3
# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4

- run: yarn install
- run: npx nx affected --target=lint --parallel=3
- run: npx nx affected --target=test --parallel=3 --code-coverage
- run: yarn merge-lcov
- run: git branch --track main origin/main
if: ${{ github.event_name == 'pull_request' }}

- name: Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false
- run: yarn nx-cloud record -- nx format:check
- run: yarn nx affected -t lint test build
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ testem.log
.DS_Store
Thumbs.db

.angular
.env
.nx/cache
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

5 changes: 2 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"recommendations": [

"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
"esbenp.prettier-vscode"
]
}
Loading

0 comments on commit 2d5587c

Please sign in to comment.