From b2924ced6ae5e48302b17a5fd4af22a0a254b20f Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Sun, 1 Oct 2023 16:40:11 +0200 Subject: [PATCH] Add testing workflow for stylua-npm-bin --- .github/workflows/npm-build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/npm-build.yml diff --git a/.github/workflows/npm-build.yml b/.github/workflows/npm-build.yml new file mode 100644 index 00000000..6423a4f5 --- /dev/null +++ b/.github/workflows/npm-build.yml @@ -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