From e31ea161aff64f8f4a86221129478d932502fb33 Mon Sep 17 00:00:00 2001 From: Yinebeb Tariku <84726535+Yinebeb-01@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:18:51 +0300 Subject: [PATCH 1/4] Update test.yml --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc97ae1..ea37583 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,4 +19,8 @@ jobs: go-version: '1.20' - name: Test - run: go test -v ./... \ No newline at end of file + env: + API_KEY: ${{ secrets.API_KEY }} + run: | + echo "API_KEY: $API_KEY" > config.yml + run: go test -v ./... From 90a75e3f3ba0dd8876e908f96757b51c39d64aa0 Mon Sep 17 00:00:00 2001 From: Yinebeb Tariku <84726535+Yinebeb-01@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:22:07 +0300 Subject: [PATCH 2/4] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea37583..9a63ed0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,5 +22,5 @@ jobs: env: API_KEY: ${{ secrets.API_KEY }} run: | - echo "API_KEY: $API_KEY" > config.yml + echo "API_KEY: $API_KEY" > config.yaml run: go test -v ./... From 7b2e38ff0f1e26d1b10d4ee3a6919d8e38582dbc Mon Sep 17 00:00:00 2001 From: Yinebeb Tariku <84726535+Yinebeb-01@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:51:27 +0300 Subject: [PATCH 3/4] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a63ed0..aa73f7f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,4 +23,4 @@ jobs: API_KEY: ${{ secrets.API_KEY }} run: | echo "API_KEY: $API_KEY" > config.yaml - run: go test -v ./... + go test -v ./... From e27fc822a39755e24954a94e91e7b7d8510554e1 Mon Sep 17 00:00:00 2001 From: Yinebeb-01 Date: Thu, 21 Mar 2024 18:50:40 +0300 Subject: [PATCH 4/4] readme updated --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index baaa0c4..ac71bd0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Unofficial Golang SDK for Chapa ET API go get github.com/Yinebeb-01/chapa-go ``` +###### API_KEY +Add your `API_KEY: CHASECK_xxxxxxxxxxxxxxxx` inside `config.yaml` file. +If you want to run the githb action on your forked repository, you have to create a secrete key named `API_KEY`. + ##### 2. Setup ```go