Skip to content

Commit

Permalink
Merge pull request #134 from lovesegfault/composite-action
Browse files Browse the repository at this point in the history
refactor: replace with a simpler composite action
  • Loading branch information
domenkozar committed Apr 10, 2022
2 parents 24e801e + 112054f commit 451e611
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 3,797 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/test.yml
Expand Up @@ -13,8 +13,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 @@ -24,16 +22,13 @@ jobs:
# 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 +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 @@ -66,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 @@ -84,8 +75,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 +90,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 451e611

Please sign in to comment.