33 lines
772 B
YAML
33 lines
772 B
YAML
---
|
|
name: CI/CD Stage
|
|
on:
|
|
push:
|
|
branches:
|
|
- stage
|
|
jobs:
|
|
stage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Git
|
|
uses: https://git.darano.ir/actions/checkout@v5
|
|
with:
|
|
token: ${{ gitea.token }}
|
|
path: ./
|
|
submodules: recursive
|
|
- name: Checkout Buf CLI
|
|
uses: https://git.darano.ir/actions/checkout@v5
|
|
with:
|
|
repository: actions/buf-bin
|
|
ref: main
|
|
path: buf-bin
|
|
- name: Setup package mirrors
|
|
uses: ./.gitea/actions/setup-mirrors
|
|
- name: Setup Buf CLI
|
|
run: |
|
|
cp buf-bin/buf /usr/local/bin/buf
|
|
chmod +x /usr/local/bin/buf
|
|
- name: Lint
|
|
run: buf lint
|
|
- name: Build
|
|
run: buf build
|