mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
ci tweaks
This commit is contained in:
parent
15e1823f0e
commit
592498fb9a
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run test:unit
|
- run: npm run test:unit
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
if: matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
if: matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
||||||
with:
|
with:
|
||||||
name: coverage-${{ matrix.os }}-${{ matrix.node }}
|
name: coverage-${{ matrix.os }}-${{ matrix.node }}
|
||||||
@ -90,12 +90,6 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npx playwright install --with-deps
|
- run: npx playwright install --with-deps
|
||||||
- run: npm run test:e2e
|
- run: npm run test:e2e
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: playwright-report-${{ matrix.os }}-${{ matrix.node }}
|
|
||||||
path: playwright-report/
|
|
||||||
retention-days: 30
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
@ -121,7 +115,7 @@ jobs:
|
|||||||
- name: Zip artifact for deployment
|
- name: Zip artifact for deployment
|
||||||
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
||||||
run: zip dist.zip ./dist -r
|
run: zip dist.zip ./dist -r
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
||||||
with:
|
with:
|
||||||
name: dist-${{ matrix.os }}-${{ matrix.node }}
|
name: dist-${{ matrix.os }}-${{ matrix.node }}
|
||||||
@ -133,7 +127,7 @@ jobs:
|
|||||||
if: ${{ success() && github.actor != 'dependabot[bot]' }}
|
if: ${{ success() && github.actor != 'dependabot[bot]' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: coverage-ubuntu-latest-20
|
name: coverage-ubuntu-latest-20
|
||||||
- uses: paambaati/codeclimate-action@v5.0.0
|
- uses: paambaati/codeclimate-action@v5.0.0
|
||||||
@ -147,7 +141,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-ubuntu-latest-20
|
name: dist-ubuntu-latest-20
|
||||||
- name: unzip artifact
|
- name: unzip artifact
|
||||||
|
Loading…
Reference in New Issue
Block a user