Simulate Deploy job
Gitea Actions Demo / Build (push) Successful in 38s
Gitea Actions Demo / Deploy (push) Failing after 21s

This commit is contained in:
2023-07-12 14:02:43 +02:00
parent 3338f2549e
commit dda7869dfc
+17 -23
View File
@@ -3,18 +3,6 @@ name: Gitea Actions Demo
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
on: [workflow_dispatch, push] on: [workflow_dispatch, push]
jobs: jobs:
Test-Job:
runs-on: ubuntu-latest
needs: Build
steps:
- name: Print greeting
run: echo "Hello world!"
- name: Do work
run: |
echo "Double run with a name possible?"
echo "Hopefully yes"
- name: Print goodbye
run: echo "Done - bye!"
Build: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -28,18 +16,24 @@ jobs:
run: npm ci run: npm ci
- name: Run Tests - name: Run Tests
run: npm test run: npm test
Explore-Gitea-Actions: Deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: Test-Job needs: Build
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - name: Checkout Code
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - name: Install NodeJS
- run: echo "🖥️ The workflow is now ready to test your code on the runner." uses: actions/setup-node@v3
- name: List files in the repository with:
node-version: '18'
- name: Build
run: npm run build
- name: Deploy
run: | run: |
ls ${{ github.workspace }} echo Deploying...
- run: echo "🍏 This job's status is ${{ job.status }}." sleep 1
echo ...
sleep 1
echo ...
sleep 1
echo DONE!