More tests
This commit is contained in:
parent
c6772b1ac3
commit
d6c2a9e0f3
@ -1,4 +1,4 @@
|
|||||||
name: Thing
|
name: Example
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
@ -6,25 +6,19 @@ env:
|
|||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-flake:
|
Example:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: node --version
|
- 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
|
- name: Install Nix
|
||||||
uses: https://github.com/cachix/install-nix-action@v20
|
uses: https://github.com/cachix/install-nix-action@v23
|
||||||
# with:
|
|
||||||
# github_access_token: ${{ secrets.__GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# - name: Install dependencies
|
- name: Install dependencies
|
||||||
# run: nix profile install nixpkgs#nodejs-18_x
|
run: nix profile install nixpkgs#nodejs-18_x
|
||||||
|
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Get ENV var names
|
- name: Get ENV var names
|
||||||
run: printenv | cut -d'=' -f1
|
run: printenv | cut -d'=' -f1
|
||||||
@ -33,5 +27,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
|
|
||||||
# - name: Check Flake
|
- name: Print nixpkgs version
|
||||||
# run: nix flake check --show-trace
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
||||||
|
|
||||||
|
- run: nix-shell -p cowsay --run "cowsay test"
|
||||||
|
- run: nix run nixpkgs#cowsay -- hello
|
Loading…
x
Reference in New Issue
Block a user