36 lines
853 B
YAML
36 lines
853 B
YAML
name: Example
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
jobs:
|
|
Example:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: node --version
|
|
|
|
- name: Install Nix
|
|
uses: https://github.com/cachix/install-nix-action@v23
|
|
with:
|
|
github_access_token: ${{ secrets.__GITHUB_TOKEN }}
|
|
|
|
- name: Install dependencies
|
|
run: nix profile install nixpkgs#nodejs-18_x
|
|
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Get ENV var names
|
|
run: printenv | cut -d'=' -f1
|
|
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ gitea.workspace }}
|
|
|
|
- name: Print nixpkgs version
|
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
|
|
|
- run: nix-shell -p cowsay --run "cowsay test"
|
|
- run: nix run nixpkgs#cowsay -- hello |