From 33f3333d169554af089c3225d0d6d8e12309a480 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 19 Jul 2026 00:45:08 -0400 Subject: [PATCH] ci: replace github actions workflow with tangled workflow --- .github/workflows/test.yml | 23 ----------------------- .tangled/workflows/test.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/test.yml create mode 100644 .tangled/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index eb8b0e4..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: test - -on: - push: - branches: - - master - - main - pull_request: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: erlef/setup-beam@v1 - with: - otp-version: "29" - gleam-version: "1.17.0" - rebar3-version: "3" - # elixir-version: "1" - - run: gleam deps download - - run: gleam test - - run: gleam format --check src test diff --git a/.tangled/workflows/test.yml b/.tangled/workflows/test.yml new file mode 100644 index 0000000..42b571b --- /dev/null +++ b/.tangled/workflows/test.yml @@ -0,0 +1,22 @@ +when: + - event: ["push"] + branch: ["master", "main"] + - event: ["pull_request"] + branch: ["master", "main"] + - event: ["manual"] + +engine: "nixery" + +dependencies: + nixpkgs: + - gleam + - erlang + - rebar3 + +steps: + - name: "Download dependencies" + command: "gleam deps download" + - name: "Run tests" + command: "gleam test" + - name: "Check formatting" + command: "gleam format --check src test" -- 2.51.2