Merge fd100e8fcb66d675a481c934f050c3b7c4a00760 into 6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
This commit is contained in:
commit
7272575ab3
5
.github/dependabot.yml
vendored
5
.github/dependabot.yml
vendored
@ -1,11 +1,10 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: daily
|
||||||
time: '00:00'
|
time: "00:00"
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
open-pull-requests-limit: 10
|
open-pull-requests-limit: 10
|
||||||
commit-message:
|
commit-message:
|
||||||
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -102,3 +102,13 @@ jobs:
|
|||||||
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
|
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
|
||||||
- run: docker pull ghcr.io/catthehacker/ubuntu:js-20.04
|
- run: docker pull ghcr.io/catthehacker/ubuntu:js-20.04
|
||||||
- run: ./bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build
|
- run: ./bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Nix
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-22.11
|
||||||
|
- run: nix-shell --packages cacert git nodejs pre-commit --pure --run 'pre-commit run --all-files'
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -91,3 +91,6 @@ typings/
|
|||||||
|
|
||||||
# DynamoDB Local files
|
# DynamoDB Local files
|
||||||
.dynamodb/
|
.dynamodb/
|
||||||
|
|
||||||
|
# JetBrains IDEA configuration
|
||||||
|
/.idea/
|
||||||
|
19
.pre-commit-config.yaml
Normal file
19
.pre-commit-config.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Configuration file for pre-commit (https://pre-commit.com/).
|
||||||
|
# Please run `pre-commit run --all-files` when adding or changing entries.
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: pathchk
|
||||||
|
name: pathchk
|
||||||
|
entry: pathchk
|
||||||
|
args: [--portability]
|
||||||
|
exclude: ^([a-zA-Z0-9._][a-zA-Z0-9._-]+)(/[a-zA-Z0-9._][a-zA-Z0-9._-]+)*$ # https://lists.gnu.org/archive/html/coreutils/2023-01/msg00006.html
|
||||||
|
language: system
|
||||||
|
stages: [commit]
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: 6f3cb139ef36133b6f903b97facc57b07cef57c9 # frozen: v3.0.0-alpha.6
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
stages: [commit]
|
24
action.yml
24
action.yml
@ -1,24 +1,24 @@
|
|||||||
name: 'Install Nix'
|
name: "Install Nix"
|
||||||
description: 'Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.'
|
description: "Installs Nix on GitHub Actions for the supported platforms: Linux and macOS."
|
||||||
author: 'Domen Kožar'
|
author: "Domen Kožar"
|
||||||
inputs:
|
inputs:
|
||||||
extra_nix_config:
|
extra_nix_config:
|
||||||
description: 'Gets appended to `/etc/nix/nix.conf` if passed.'
|
description: "Gets appended to `/etc/nix/nix.conf` if passed."
|
||||||
github_access_token:
|
github_access_token:
|
||||||
description: 'Configure nix to pull from github using the given github token.'
|
description: "Configure nix to pull from github using the given github token."
|
||||||
install_url:
|
install_url:
|
||||||
description: 'Installation URL that will contain a script to install Nix.'
|
description: "Installation URL that will contain a script to install Nix."
|
||||||
install_options:
|
install_options:
|
||||||
description: 'Additional installer flags passed to the installer script.'
|
description: "Additional installer flags passed to the installer script."
|
||||||
nix_path:
|
nix_path:
|
||||||
description: 'Set NIX_PATH environment variable.'
|
description: "Set NIX_PATH environment variable."
|
||||||
branding:
|
branding:
|
||||||
color: 'blue'
|
color: "blue"
|
||||||
icon: 'sun'
|
icon: "sun"
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run : ${GITHUB_ACTION_PATH}/install-nix.sh
|
- run: ${GITHUB_ACTION_PATH}/install-nix.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
|
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user