Skip to content

Commit

Permalink
Add testing workflow for stylua-npm-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Oct 1, 2023
1 parent 8d43b93 commit b2924ce
Showing 1 changed file with 27 additions and 0 deletions.
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@v3
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

0 comments on commit b2924ce

Please sign in to comment.