diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..78515d4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: CI (Tests) +run-name: ${{ github.workflow }} - ${{ github.ref }} - by ${{ github.actor }} + +# events that trigger this workflow +on: + pull_request: + branches: [ "main" ] + paths-ignore: + - '**.md' + - 'build/**' + - 'assets/**' + push: + branches: [ "main" ] + paths-ignore: + - '**.md' + - 'build/**' + - 'assets/**' + workflow_dispatch: + +jobs: + + build: + name: Build App + runs-on: ubuntu-latest + permissions: + contents: read # access to check out code and install dependencies + + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-go@v6 + with: + go-version: '1.24' + + - run: go run main.go --help + - run: go build \ No newline at end of file diff --git a/README.md b/README.md index f6224db..7c86125 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ curl -sL https://raw.githubusercontent.com/hellotimking/clog/main/install.sh | b > (I mean, it is... but it's good to read through what it's going to do) ### Building From Source -**Requires Go 1.21 or higher.** +**Requires Go 1.24 or higher.** #### Clone the repository ```bash