diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6ee259f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: test + +on: + push: + branches: + - main + +env: + HOMEBREW_NO_AUTO_UPDATE: 1 + HOMEBREW_NO_ENV_HINTS: 1 + HOMEBREW_NO_INSTALL_CLEANUP: 1 + +jobs: + test: + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@v3 + - name: Install Basic Tooling + run: brew install xcbeautify + - name: Tests + run: swift test | xcbeautify diff --git a/README.md b/README.md index 91ffaca..40ccbe9 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ # Advent Of Code + +[![test](https://github.com/leohidalgo/advent-of-code/actions/workflows/test.yml/badge.svg)](https://github.com/leohidalgo/advent-of-code/actions/workflows/test.yml)