Skip to content

Working with files #143

Working with files

Working with files #143

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0"
gleam-version: "0.34.0-rc2"
rebar3-version: "3"
# elixir-version: "1.14.2"
- run: gleam format --check src test
- run: gleam deps download
- run: gleam test
- name: "Example: 0-hello-world"
run: gleam test
working-directory: examples/0-hello-world
- name: "Example: 1-routing"
run: gleam test
working-directory: examples/1-routing
- name: "Example: 2-working-with-form-data"
run: gleam test
working-directory: examples/2-working-with-form-data
- name: "Example: 3-working-with-json"
run: gleam test
working-directory: examples/3-working-with-json
- name: "Example: 4-working-with-other-formats"
run: gleam test
working-directory: examples/4-working-with-other-formats
- name: "Example: 5-using-a-database"
run: gleam test
working-directory: examples/5-using-a-database
- name: "Example: 6-serving-static-assets"
run: gleam test
working-directory: examples/6-serving-static-assets
- name: "Example: 7-logging"
run: gleam test
working-directory: examples/7-logging
- name: "Example: 8-working-with-cookies"
run: gleam test
working-directory: examples/8-working-with-cookies