Skip to content

Commit 451e611

Browse files
authored
Merge pull request #134 from lovesegfault/composite-action
refactor: replace with a simpler composite action
2 parents 24e801e + 112054f commit 451e611

File tree

10 files changed

+9
-3797
lines changed

10 files changed

+9
-3797
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v3
16-
- run: yarn install --frozen-lockfile
17-
- run: yarn build
1816
- name: Install Nix
1917
uses: ./
2018
with:
@@ -24,16 +22,13 @@ jobs:
2422
# cachix should be available and be able to configure a cache
2523
- run: cachix use cachix
2624
- run: nix-build test.nix
27-
2825
custom-nix-path:
2926
strategy:
3027
matrix:
3128
os: [ubuntu-latest, macos-latest]
3229
runs-on: ${{ matrix.os }}
3330
steps:
3431
- uses: actions/checkout@v3
35-
- run: yarn install --frozen-lockfile
36-
- run: yarn build
3732
- name: Install Nix
3833
uses: ./
3934
with:
@@ -48,8 +43,6 @@ jobs:
4843
runs-on: ${{ matrix.os }}
4944
steps:
5045
- uses: actions/checkout@v3
51-
- run: yarn install --frozen-lockfile
52-
- run: yarn build
5346
- name: Install Nix
5447
uses: ./
5548
with:
@@ -66,8 +59,6 @@ jobs:
6659
runs-on: ${{ matrix.os }}
6760
steps:
6861
- uses: actions/checkout@v3
69-
- run: yarn install --frozen-lockfile
70-
- run: yarn build
7162
- name: Install Nix
7263
uses: ./
7364
with:
@@ -84,8 +75,6 @@ jobs:
8475
runs-on: ${{ matrix.os }}
8576
steps:
8677
- uses: actions/checkout@v3
87-
- run: yarn install --frozen-lockfile
88-
- run: yarn build
8978
- name: Install Nix
9079
uses: ./
9180
with:
@@ -101,8 +90,6 @@ jobs:
10190
runs-on: ${{ matrix.os }}
10291
steps:
10392
- uses: actions/checkout@v3
104-
- run: yarn install --frozen-lockfile
105-
- run: yarn build
10693
- name: Install Nix
10794
uses: ./
10895
with:

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ branding:
1414
color: 'blue'
1515
icon: 'sun'
1616
runs:
17-
using: 'node12'
18-
main: 'lib/main.js'
17+
using: 'composite'
18+
steps:
19+
- run : ${{ github.action_path }}/install-nix.sh
20+
shell: bash
21+
env:
22+
INPUT_INSTALL_URL: ${{ inputs.install_url }}
23+
INPUT_INSTALL_OPTIONS: ${{ inputs.install_options }}
24+
INPUT_NIX_PATH: ${{ inputs.nix_path }}
25+
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
File renamed without changes.

lib/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/main.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

shell.nix

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/main.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)