Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/JohnnyMorganz/StyLua into r…
Browse files Browse the repository at this point in the history
…espect-ignores
  • Loading branch information
JohnnyMorganz committed Nov 11, 2023
2 parents 1babf3a + d92ba7e commit 9ca624f
Show file tree
Hide file tree
Showing 23 changed files with 993 additions and 267 deletions.
37 changes: 21 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@

version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
# # Maintain dependencies for GitHub Actions
# - package-ecosystem: "github-actions"
# directory: "/"
# schedule:
# interval: "monthly"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"

# Maintain dependencies for cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
# # Maintain dependencies for npm
# - package-ecosystem: "npm"
# directory: "/stylua-npm-bin"
# schedule:
# interval: "monthly"

# - package-ecosystem: "npm"
# directory: "/stylua-vscode"
# schedule:
# interval: "monthly"

# # Maintain dependencies for cargo
# - package-ecosystem: "cargo"
# directory: "/"
# schedule:
# interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
target: wasm32-unknown-unknown

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install dependencies
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- run: npm install
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: NPM Packaging
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# Ensure it builds on all platforms
smoketest:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Attempt install
run: npm install --package-locked
working-directory: stylua-npm-bin
- name: Attempt run
run: npx . --version
working-directory: stylua-npm-bin
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
target: wasm32-unknown-unknown

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
Expand All @@ -158,7 +158,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
Expand All @@ -180,12 +180,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true

- uses: docker/metadata-action@v4
- uses: docker/metadata-action@v5
id: meta
env:
DOCKER_METADATA_PR_HEAD_SHA: "true"
Expand All @@ -195,12 +195,12 @@ jobs:
type=semver,pattern={{version}}
type=sha
- uses: docker/login-action@v2
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: docker/build-push-action@v4
- uses: docker/build-push-action@v5
with:
push: true
context: .
Expand Down
Loading

0 comments on commit 9ca624f

Please sign in to comment.