Implémenter workflow d'intégration continue de base #247
1 changed files with 30 additions and 0 deletions
30
.forgejo/workflows/basic.yaml
Normal file
30
.forgejo/workflows/basic.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'vlbeaudoin/*'
|
||||
pull_request:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: mkdir -p artifacts
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24.5'
|
||||
- run: make go-build
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: executable
|
||||
path: agecem-org
|
||||
help:
|
||||
needs: [build]
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: executable
|
||||
- run: chmod +x agecem-org
|
||||
- run: mv agecem-org /usr/bin/agecem-org
|
||||
- run: agecem-org help
|
Loading…
Add table
Add a link
Reference in a new issue