Skip to content

Merge pull request #98 from akirak/dependabot/github_actions/cachix/i… #32

Merge pull request #98 from akirak/dependabot/github_actions/cachix/i…

Merge pull request #98 from akirak/dependabot/github_actions/cachix/i… #32

Workflow file for this run

name: Check gleam
on:
push:
paths:
# Set this to the directory of the template
- gleam/**
- .github/workflows/check-gleam.yml
workflow_dispatch:
workflow_call:
concurrency:
group: check-gleam-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v29
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
path: ./tmp
- name: Initialize a project
run: |
nix run nixpkgs#gleam -- new hello_gleam
cd hello_gleam
nix flake init -t ../tmp#gleam
- name: Prepare the project
working-directory: hello_gleam
run: |
git init
git add .
- name: Run the example program
working-directory: hello_gleam
run: |
nix develop -L --command gleam --version
nix develop -L --command gleam run