25 lines
604 B
YAML
25 lines
604 B
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check repository code
|
|
uses: actions/checkout@v4
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ gitea.workspace }}
|
|
- name: setup go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: Download dependencies
|
|
run: |
|
|
go mod download
|
|
|
|
- name: Build Go
|
|
run: |
|
|
go build -v ./...
|
|
|