Skip to content

Commit

Permalink
ci: split workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Oct 22, 2023
1 parent 1ebee28 commit 3bae3ff
Showing 1 changed file with 48 additions and 4 deletions.
52 changes: 48 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,27 @@ jobs:
#- name: memory leak detection
# run: npm run test -- --detectLeaks

- name: package
run: npm run package
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
acceptance:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3
- name: Set Environment Variables
uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./envvars.for.actions

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Attempt to restore the cache
uses: actions/cache@v3
id: cache_restore
with:
path: ./node_modules
key: ${{ hashFiles('**/package-lock.json') }}

- name: export display
run: |
Expand All @@ -111,6 +128,33 @@ jobs:
browser: chrome
headed: true

delivery:
runs-on: ubuntu-latest
needs: [test, acceptance]
steps:
- uses: actions/checkout@v3
- name: Set Environment Variables
uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./envvars.for.actions

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Attempt to restore the cache
uses: actions/cache@v3
id: cache_restore
with:
path: ./node_modules
key: ${{ hashFiles('**/package-lock.json') }}

- name: package
run: npm run package
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

# - name: package for windows
# run: npm run package-windows

Expand Down

0 comments on commit 3bae3ff

Please sign in to comment.