37 lines
908 B
YAML
37 lines
908 B
YAML
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 |