From d6c2a9e0f394dfff4da2a12660e98f8c4d56b6ff Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 1 Oct 2023 08:47:19 -0600 Subject: [PATCH] More tests --- .gitea/workflows/test.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 5eab404..78b3de4 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Thing +name: Example on: [push] @@ -6,25 +6,19 @@ env: DEBIAN_FRONTEND: noninteractive jobs: - check-flake: + Example: runs-on: ubuntu-latest steps: - run: node --version - # - name: Install basic dependencies - # run: apt-get update && apt-get install -y --no-install-recommends sudo curl ca-certificates xz-utils - name: Install Nix - uses: https://github.com/cachix/install-nix-action@v20 - # with: - # github_access_token: ${{ secrets.__GITHUB_TOKEN }} + uses: https://github.com/cachix/install-nix-action@v23 - # - name: Install dependencies - # run: nix profile install nixpkgs#nodejs-18_x + - name: Install dependencies + run: nix profile install nixpkgs#nodejs-18_x - name: Checkout the repository uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: Get ENV var names run: printenv | cut -d'=' -f1 @@ -33,5 +27,8 @@ jobs: run: | ls ${{ gitea.workspace }} - # - name: Check Flake - # run: nix flake check --show-trace \ No newline at end of file + - name: Print nixpkgs version + run: nix-instantiate --eval -E '(import {}).lib.version' + + - run: nix-shell -p cowsay --run "cowsay test" + - run: nix run nixpkgs#cowsay -- hello \ No newline at end of file