Skip to content

Commit

Permalink
refactor: replace with a simpler composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault committed Apr 8, 2022
1 parent 24e801e commit 79dd4ea
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 3,813 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/test.yml
Expand Up @@ -6,34 +6,13 @@ on:
- master

jobs:
simple-build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-20.03
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
- run: cat /etc/nix/nix.conf
# cachix should be available and be able to configure a cache
- run: cachix use cachix
- run: nix-build test.nix

custom-nix-path:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
Expand All @@ -48,8 +27,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
Expand All @@ -66,8 +43,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
Expand All @@ -84,8 +59,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
Expand All @@ -101,8 +74,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
Expand Down
11 changes: 9 additions & 2 deletions action.yml
Expand Up @@ -14,5 +14,12 @@ branding:
color: 'blue'
icon: 'sun'
runs:
using: 'node12'
main: 'lib/main.js'
using: 'composite'
steps:
- run : ${{ github.action_path }}/install-nix.sh
shell: bash
env:
INPUT_INSTALL_URL: ${{ inputs.install_url }}
INPUT_INSTALL_OPTIONS: ${{ inputs.install_options }}
INPUT_NIX_PATH: ${{ inputs.nix_path }}
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
File renamed without changes.
5 changes: 0 additions & 5 deletions lib/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions lib/main.js

This file was deleted.

36 changes: 0 additions & 36 deletions package.json

This file was deleted.

8 changes: 0 additions & 8 deletions shell.nix

This file was deleted.

3 changes: 0 additions & 3 deletions src/main.ts

This file was deleted.

63 changes: 0 additions & 63 deletions tsconfig.json

This file was deleted.

0 comments on commit 79dd4ea

Please sign in to comment.