From 43a5a00d26174ebe2f2e5e6ba1ab223cc2dc2b68 Mon Sep 17 00:00:00 2001 From: rayah97 <71568436+rayah97@users.noreply.github.com> Date: Sat, 3 Dec 2022 15:04:55 +0400 Subject: [PATCH 1/3] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..215a25b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From 226944479ed44ee2c9db5cd1411629453c9332e4 Mon Sep 17 00:00:00 2001 From: rayah97 Date: Sat, 3 Dec 2022 15:17:17 +0400 Subject: [PATCH 2/3] lets see --- .github/workflows/go.yml | 22 ++++++++++--------- .idea/.gitignore | 8 +++++++ .idea/helloworldGO.iml | 8 +++++++ .../inspectionProfiles/profiles_settings.xml | 6 +++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 +++++ 7 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/helloworldGO.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 215a25b..9218608 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,13 +1,16 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - name: Go on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] + workflow_dispatch: + inputs: + goversion: + description: 'Go Versions' + required: true + type: choice + options: + - "1.18" + - "1.19" + - "1.20" jobs: @@ -19,10 +22,9 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: ${{ inputs.goversion}} - name: Build run: go build -v ./... - - name: Test - run: go test -v ./... + diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/helloworldGO.iml b/.idea/helloworldGO.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/helloworldGO.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0741a1f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..598ee20 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From 401742cdfdce4fcdccce4b7a28d1687a6ebc3659 Mon Sep 17 00:00:00 2001 From: rayah97 Date: Sat, 3 Dec 2022 15:25:53 +0400 Subject: [PATCH 3/3] added gomod file --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..0c4c931 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/helloworldGO/helloworld + +go 1.19 \ No newline at end of file