Skip to content

modif verification sortie main #6

modif verification sortie main

modif verification sortie main #6

name: vérification du client
on:
push:
branches:
- 14-create-create-CI-CD
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Checkout du code
uses: actions/checkout@v2
- name: Installer Go
uses: actions/setup-go@v2
with:
go-version: 1.21.6
- name: Installer les dépendances Go
run: go get -v -t -d ./...
- name: Display Go version
run: go version
- name: Exécuter main.go
id: run-main
run: go run chemin/vers/votre/main.go
- name: Afficher la sortie de main.go
run: echo "La sortie de main.go est '${{ steps.run-main.outputs.stdout }}'"
id: set-output
- name: Définir la sortie pour le job build
run: echo "run-main=${{ steps.set-output.outputs.stdout }}" >> $GITHUB_ENV