Skip to content

Commit

Permalink
chore: Migrating to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoslig committed Nov 26, 2023
1 parent 9475e9c commit d66fdcb
Show file tree
Hide file tree
Showing 23 changed files with 12,182 additions and 29,279 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"extends": ["plugin:ngrx/recommended"]
}
],
"extends": [null, "plugin:storybook/recommended"]
"extends": []
}
5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'ci-cd pipeline'

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Build file
run: nx run conduit:build

- name: Deploy production to Netlify
uses: South-Paw/action-netlify-deploy@v1.2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: './build'
comment-on-commit: true
86 changes: 0 additions & 86 deletions .gitlab-ci.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .storybook/main.js

This file was deleted.

14 changes: 0 additions & 14 deletions .storybook/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/conduit/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": ["*.ts"],
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
"parserOptions": {
"project": ["apps/conduit/tsconfig.*?.json", "apps/conduit/.storybook/tsconfig.json"]
"project": ["apps/conduit/tsconfig.*?.json"]
},
"rules": {
"@angular-eslint/directive-selector": [
Expand Down
20 changes: 0 additions & 20 deletions apps/conduit/.storybook/main.js

This file was deleted.

Empty file removed apps/conduit/.storybook/preview.js
Empty file.
8 changes: 0 additions & 8 deletions apps/conduit/.storybook/tsconfig.json

This file was deleted.

29 changes: 0 additions & 29 deletions apps/conduit/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,35 +93,6 @@
"passWithNoTests": true
},
"outputs": ["{workspaceRoot}/coverage/apps/conduit"]
},
"storybook": {
"executor": "@storybook/angular:start-storybook",
"options": {
"port": 4400,
"configDir": "apps/conduit/.storybook",
"buildTarget": "conduit:build",
"compodoc": false
},
"configurations": {
"ci": {
"quiet": true
}
}
},
"build-storybook": {
"executor": "@storybook/angular:build-storybook",
"outputs": ["{options.outputPath}"],
"options": {
"outputDir": "dist/storybook/conduit",
"configDir": "apps/conduit/.storybook",
"buildTarget": "conduit:build",
"compodoc": false
},
"configurations": {
"ci": {
"quiet": true
}
}
}
}
}
3 changes: 0 additions & 3 deletions apps/conduit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
},
{
"path": "./tsconfig.editor.json"
},
{
"path": "./.storybook/tsconfig.json"
}
],
"compilerOptions": {
Expand Down
70 changes: 0 additions & 70 deletions decorate-angular-cli.js

This file was deleted.

12 changes: 0 additions & 12 deletions firebase.json

This file was deleted.

20 changes: 0 additions & 20 deletions libs/ui/components/.storybook/main.js

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions libs/ui/components/.storybook/tsconfig.json

This file was deleted.

29 changes: 0 additions & 29 deletions libs/ui/components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,6 @@
"options": {
"lintFilePatterns": ["libs/ui/components/src/**/*.ts", "libs/ui/components/src/**/*.html"]
}
},
"storybook": {
"executor": "@storybook/angular:start-storybook",
"options": {
"port": 4400,
"configDir": "libs/ui/components/.storybook",
"buildTarget": "ui-components:build-storybook",
"compodoc": false
},
"configurations": {
"ci": {
"quiet": true
}
}
},
"build-storybook": {
"executor": "@storybook/angular:build-storybook",
"outputs": ["{options.outputPath}"],
"options": {
"outputDir": "dist/storybook/ui-components",
"configDir": "libs/ui/components/.storybook",
"buildTarget": "ui-components:build-storybook",
"compodoc": false
},
"configurations": {
"ci": {
"quiet": true
}
}
}
},
"tags": []
Expand Down

0 comments on commit d66fdcb

Please sign in to comment.