Skip to content

Commit

Permalink
test: test node packages
Browse files Browse the repository at this point in the history
  • Loading branch information
charislam committed Dec 6, 2024
1 parent dda2a52 commit aeaca38
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,50 @@ jobs:
name: artifact-npm-binary-distributions
path: npm-binary-distributions/*/*.tgz
if-no-files-found: "error"

test-ubuntu:
runs-on: ubuntu-latest
needs: [node, npm-distributions]
# strategy:
# fail-fast: true
# matrix:
# node-version: [18, 20, 22]
steps:
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
# node-version: ${{ matrix.node-version }}
node-version: "20.10.0"
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: artifact-npm-binary-distributions
path: ./npm-binary-distributions
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: artifact-pkg-node
path: ./node-pkg
- name: Create package.json
run: |
mkdir test
cd test
cat <<EOF > package.json
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"lint": "@supabase/supa-mdx-lint --version"
},
"keywords": [].
"author": "",
"license": "ISC"
}
EOF
- name: Install and test packages
run: |
cd test
npm install ../npm-binary-distributions/linux-x64/*.tgz
npm install ../node-pkg/*.tgz
cat package.json
cat package-lock.json
npm run lint

0 comments on commit aeaca38

Please sign in to comment.