Skip to content

Commit

Permalink
Update: Make test work independently
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Oct 17, 2023
1 parent e28a3a3 commit 1c165da
Showing 1 changed file with 14 additions and 45 deletions.
59 changes: 14 additions & 45 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,16 @@ env:
dependencies: 'svelte svelte-preprocess esbuild-svelte vue esbuild-plugin-vue3 sass node-sass-tilde-importer'

jobs:
prepare:
name: Prepare test
pnpm:
name: Test with pnpm
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Copy files
run: |
mkdir -p Build/Carbon.Pipeline/
cp -n Test/pipeline.yaml ./
cp -n Installer/Distribution/Defaults/{*,.*} ./ || true
cp -R {Lib,defaults.yaml,*.mjs,*.js} Build/Carbon.Pipeline/
- name: Upload
uses: actions/upload-artifact@v3
with:
name: test
path: '*'

pnpm:
name: Test with pnpm
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: test
- name: Install pnpm
uses: pnpm/[email protected]
with:
Expand All @@ -64,12 +45,13 @@ jobs:
yarn:
name: Test with yarn
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: test
- name: Copy files
run: |
mkdir -p Build/Carbon.Pipeline/
cp -n Test/pipeline.yaml ./
cp -n Installer/Distribution/Defaults/{*,.*} ./ || true
cp -R {Lib,defaults.yaml,*.mjs,*.js} Build/Carbon.Pipeline/
- name: Setup node
uses: actions/[email protected]
with:
Expand All @@ -89,12 +71,13 @@ jobs:
npm:
name: Test with npm
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: test
- name: Copy files
run: |
mkdir -p Build/Carbon.Pipeline/
cp -n Test/pipeline.yaml ./
cp -n Installer/Distribution/Defaults/{*,.*} ./ || true
cp -R {Lib,defaults.yaml,*.mjs,*.js} Build/Carbon.Pipeline/
- uses: actions/[email protected]
with:
node-version-file: .nvmrc
Expand All @@ -108,17 +91,3 @@ jobs:
run: npm run showConfig
- name: Build files
run: npm run build

deleteArtifacts:
name: Delete artifacts
runs-on: ubuntu-latest
if: always()
needs:
- pnpm
- yarn
- npm
steps:
- name: Delete artifacts
uses: geekyeggo/delete-artifact@v2
with:
name: test

0 comments on commit 1c165da

Please sign in to comment.