Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jonathan committed Jul 21, 2024
1 parent 908fc59 commit fb13fb4
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 154 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/develop-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,26 @@ on:
jobs:
lint:
uses: cosmicmind/actions/.github/workflows/lint-code.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
codeql:
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

build:
needs:
- lint
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test
VITE_MODE: development

test:
needs:
- build
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: test
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test

codeql:
needs:
- test
uses: cosmicmind/actions/.github/workflows/codeql.yml@release
19 changes: 13 additions & 6 deletions .github/workflows/feature-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ on:
jobs:
lint:
uses: cosmicmind/actions/.github/workflows/lint-code.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
codeql:
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

build:
needs:
- lint
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test
VITE_MODE: development

test:
needs:
- build
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: test
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test

codeql:
needs:
- test
uses: cosmicmind/actions/.github/workflows/codeql.yml@release
32 changes: 19 additions & 13 deletions .github/workflows/release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,34 @@ on:
jobs:
lint:
uses: cosmicmind/actions/.github/workflows/lint-code.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
codeql:
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

build:
needs:
- lint
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: develop
NODE_ENV: development
VITE_MODE: test
BUILD_TARGET: release
NODE_ENV: production
VITE_MODE: production

test:
needs:
- build
uses: cosmicmind/actions/.github/workflows/build-package.yml@release
with:
BUILD_TARGET: test
NODE_ENV: development
BUILD_TARGET: release
NODE_ENV: production
VITE_MODE: test

codeql:
needs:
- test
uses: cosmicmind/actions/.github/workflows/codeql.yml@release

publish:
needs:
- lint
- codeql
- build
- test
uses: cosmicmind/actions/.github/workflows/publish-package.yml@release
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
Loading

0 comments on commit fb13fb4

Please sign in to comment.