modif verification sortie main #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |