Skip to content

Commit

Permalink
feat: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Jul 10, 2024
1 parent 200bbe2 commit ba32c63
Show file tree
Hide file tree
Showing 14 changed files with 1,274 additions and 1,801 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- main
- v1
pull_request:

permissions:
Expand Down Expand Up @@ -34,4 +34,4 @@ jobs:
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: npx nx-cloud record -- echo Hello World
- run: npx nx affected -t lint test build
- run: npx nx affected --parallel 1 -t e2e-ci
# - run: npx nx affected --parallel 1 -t e2e-ci
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy
on:
workflow_dispatch:
push:
branches:
- v1

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx run build-gh-pages
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist/apps/taiga-lumbermill/browser
silent: false
clean: true

concurrency:
group: deploy-${{ github.head_ref }}
cancel-in-progress: true
58 changes: 58 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Lint
# on: [pull_request]
on:
push:
branches:
- v1

jobs:
# typecheck:
# runs-on: ubuntu-latest
# steps:
# - uses: taiga-family/ci/actions/setup/[email protected]
# - uses: taiga-family/ci/actions/setup/[email protected]
# - uses: taiga-family/ci/actions/setup/[email protected]
# - run: npm run typecheck

# cspell:
# runs-on: ubuntu-latest
# steps:
# - uses: taiga-family/ci/actions/setup/[email protected]
# - uses: taiga-family/ci/actions/setup/[email protected]
# - uses: taiga-family/ci/actions/setup/[email protected]
# - run: npm run cspell -- --no-progress

prettier:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run prettier -- --write

stylelint:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run stylelint -- --fix

eslint:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run lint -- --fix

result:
needs: [prettier, eslint, stylelint]
runs-on: ubuntu-latest
name: Lint result
steps:
- run: echo "Success"

concurrency:
group: lint-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on:
pull_request:
push:
branches:
- v1

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]

- name: Run tests
run: npx nx run-many --target test --all --coverage

- name: Archive coverage artifacts
uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage

concurrency:
group: test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
70 changes: 0 additions & 70 deletions apps/taiga-lumbermill-e2e/playwright.config.ts

This file was deleted.

9 changes: 0 additions & 9 deletions apps/taiga-lumbermill-e2e/project.json

This file was deleted.

8 changes: 0 additions & 8 deletions apps/taiga-lumbermill-e2e/src/example.spec.ts

This file was deleted.

25 changes: 0 additions & 25 deletions apps/taiga-lumbermill-e2e/tsconfig.json

This file was deleted.

4 changes: 4 additions & 0 deletions apps/taiga-lumbermill/src/app/app.component.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* {
margin: 0;
padding: 0;
}
2 changes: 1 addition & 1 deletion apps/taiga-lumbermill/src/app/nx-welcome.component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
import {CommonModule} from '@angular/common';
import {Component, ViewEncapsulation} from '@angular/core';

Expand Down Expand Up @@ -994,6 +995,5 @@ nx affected:e2e</pre>
`,
styles: [],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NxWelcomeComponent {}
3 changes: 2 additions & 1 deletion apps/taiga-lumbermill/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import bootstrapApplication from '@angular/platform-browser';
/* eslint-disable */
import {bootstrapApplication} from '@angular/platform-browser';

import {AppComponent} from './app/app.component';
import {appConfig} from './app/app.config';
Expand Down
Loading

0 comments on commit ba32c63

Please sign in to comment.