add test server, tests, type annotations #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: "26.0.2" | |
gleam-version: "1.2.0" | |
rebar3-version: "3" | |
# elixir-version: "1.15.4" | |
- uses: browser-actions/setup-chrome@v1 | |
id: setup-chrome | |
- run: | | |
${{ steps.setup-chrome.outputs.chrome-path }} --version | |
- run: gleam deps download | |
- run: gleam test | |
env: | |
CHROBOT_TEST_BROWSER_PATH: ${{ steps.setup-chrome.outputs.chrome-path }} | |
- run: gleam format --check src test |