test cicd
This commit is contained in:
parent
3788556da8
commit
551cdbd9e2
37
.gitea/gitea-ci.yaml
Normal file
37
.gitea/gitea-ci.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: Build And Test
|
||||||
|
run-name: ${{ gitea.actor }} is runs ci pipeline
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci-flow:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Test CI action command
|
||||||
|
run: ls -la
|
||||||
|
- name: Test CI action command 1
|
||||||
|
run: pwd
|
||||||
|
- name: Test CI action command 2
|
||||||
|
run: whoami
|
||||||
|
- name: Test CI action command 3
|
||||||
|
run: cat /etc/os-release
|
||||||
|
|
||||||
|
cd-flow:
|
||||||
|
runs-on: alpine-latest
|
||||||
|
needs: build
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Test CD action command
|
||||||
|
run: ls -la
|
||||||
|
- name: Test CD action command 1
|
||||||
|
run: pwd
|
||||||
|
- name: Test CD action command 2
|
||||||
|
run: whoami
|
||||||
|
- name: Test CD action command 3
|
||||||
|
run: cat /etc/os-release
|
||||||
Loading…
Reference in New Issue
Block a user