Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a45fae0287 | ||
|
|
22f5afdb58 | ||
|
|
b3e5d63e86 | ||
|
|
1f66db0ba4 |
@@ -1,12 +1,14 @@
|
||||
name: Build & Push Portfolio Image
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
REGISTRY: forgejo.riotpiao.com
|
||||
IMAGE: forgejo.riotpiao.com/rock/portfolio
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -20,7 +22,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Run tests
|
||||
run: npm test -- --run 2>&1 || echo "Tests completed"
|
||||
@@ -30,9 +32,6 @@ jobs:
|
||||
needs: test
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
runs-on: node
|
||||
env:
|
||||
REGISTRY: forgejo.riotpiao.com
|
||||
IMAGE: forgejo.riotpiao.com/rock/portfolio
|
||||
steps:
|
||||
- name: Install Node.js and Docker
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user