diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8a19e6e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +# 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: Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22.1' + + - name: Test + run: go test -v ./... diff --git a/README.md b/README.md index f78524c..b81f9b4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # sqls +[![Go test](https://github.com/yinxulai/sqls/actions/workflows/test.yml/badge.svg)](https://github.com/yinxulai/sqls/actions/workflows/test.yml) + sqls is prepared for developers who like to write `sql` by themselves instead of using `ORM`. There is nothing special, it just simply helps you edit `sql` better. > The meaning of sqls is `sql+s`, where `s` means `string` and `simple`, `small` diff --git a/README_CN.md b/README_CN.md index a2e6990..4599da1 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,5 +1,7 @@ # sqls +[![Go test](https://github.com/yinxulai/sqls/actions/workflows/test.yml/badge.svg)](https://github.com/yinxulai/sqls/actions/workflows/test.yml) + sqls 是针对喜欢自己编写 `sql` 而不是使用 `ORM` 的开发者准备的,没有任何特殊的东西,只是简单的帮助你更好的编辑 `sql` > sqls 的含义是 `sql+s`,其中 `s` 的含义是 `string` 以及 `simple`、`small`