From b058cff611842a334e7d9f98b0f097f297abdc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ot=C3=A1vio=20Fernandes?= Date: Mon, 17 Oct 2022 15:03:47 +0200 Subject: [PATCH] WIP --- .github/actions/setup/action.yaml | 9 +++++++++ .github/workflows/test.yaml | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/actions/setup/action.yaml create mode 100644 .github/workflows/test.yaml diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml new file mode 100644 index 0000000..9d37697 --- /dev/null +++ b/.github/actions/setup/action.yaml @@ -0,0 +1,9 @@ +--- +name: setup +description: set up the stage for building and testing +runs: + using: composite + steps: + - uses: actions/setup-go@v3 + with: + go-version: 1.19.x \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..b457661 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,20 @@ +--- +name: Unit and E2E Tests + +on: + push: + tags-ignore: + - '**' + branches: + - main + pull_request: + branches: + - main + +jobs: + unit-test: + name: unit-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/setup