Skip to content

Commit

Permalink
feat(*): test development environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
shahinism committed Jul 17, 2024
1 parent 68020a3 commit c8b2caa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Test"

on:
pull_request:
push:

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv

- name: Build the devenv shell and run any pre-commit hooks
run: devenv test
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
{% block hooks %}
prettier.enable = true;
editorconfig-checker.enable = true;
{% endblock %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ in
ruff.enable = true;
pyright.enable = true;
editorconfig-checker.enable = true;
{% endblock %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ build-backend = "pdm.backend"


[tool.pdm]
distribution = true
distribution = true

0 comments on commit c8b2caa

Please sign in to comment.