Skip to content

Commit

Permalink
ci: moved to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Jul 1, 2024
1 parent 9d5759e commit 1e332de
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('yarn.lock') }}
- name: Load build cache
uses: actions/cache@v2
with:
path: |
**/dist
key: ${{ runner.os }}-build-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-build-v1-${{ github.run_number }}
- name: Installing dependencies
run: |
npm install --no-save
Expand All @@ -53,13 +53,13 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('yarn.lock') }}
- name: Load build cache
uses: actions/cache@v2
with:
path: |
**/dist
key: ${{ runner.os }}-build-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-build-v1-${{ github.run_number }}
- name: Quality
run: |
npm run lint
Expand All @@ -75,20 +75,20 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('yarn.lock') }}
- name: Load build cache
uses: actions/cache@v2
with:
path: |
**/dist
key: ${{ runner.os }}-build-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-build-v1-${{ github.run_number }}
- name: Load test and coverage cache
uses: actions/cache@v2
with:
path: |
**/test-results.xml
**/coverage
key: ${{ runner.os }}-test-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-test-v1-${{ github.run_number }}
- name: Test
env:
clientId: ${{ secrets.SOLID_CLIENT_ID }}
Expand All @@ -107,19 +107,19 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('yarn.lock') }}
- name: Load build cache
uses: actions/cache@v2
with:
path: |
**/dist
key: ${{ runner.os }}-build-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-build-v1-${{ github.run_number }}
- name: Load document cache
uses: actions/cache@v2
with:
path: |
**/docs/out
key: ${{ runner.os }}-docs-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-docs-v1-${{ github.run_number }}
- name: Build documentation
run: |
npm run build:typedoc
Expand All @@ -137,7 +137,7 @@ jobs:
with:
path: |
**/docs/out
key: ${{ runner.os }}-docs-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-docs-v1-${{ github.run_number }}
- name: Publish Documentation
uses: actions/upload-artifact@v2
with:
Expand All @@ -163,7 +163,7 @@ jobs:
path: |
**/test-results.xml
**/coverage
key: ${{ runner.os }}-test-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-test-v1-${{ github.run_number }}
- name: Publish unit test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
Expand Down Expand Up @@ -192,13 +192,13 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('yarn.lock') }}
- name: Load build cache
uses: actions/cache@v2
with:
path: |
**/dist
key: ${{ runner.os }}-build-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-build-v1-${{ github.run_number }}
- name: Configure Publish
run: |
git config --global user.name 'CI'
Expand Down Expand Up @@ -233,13 +233,13 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-dependencies-v1-${{ hashFiles('yarn.lock') }}
- name: Load build cache
uses: actions/cache@v2
with:
path: |
**/dist
key: ${{ runner.os }}-build-v1-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
key: ${{ runner.os }}-build-v1-${{ github.run_number }}
- name: Configure Publish
run: |
git config --global user.name 'CI'
Expand Down

0 comments on commit 1e332de

Please sign in to comment.