diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..30e4db6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + paths-ignore: + - '*.gitignore' + - '*.md' + - 'LICENSE' + pull_request: + paths-ignore: + - '*.gitignore' + - '*.md' + - 'LICENSE' + +jobs: + Build: + name: Build (Node.js ${{ matrix.node-version }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [18, 20] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - uses: oven-sh/setup-bun@v1 + - name: Build + run: | + rm -rf dist + npm install --no-fund + npm run build + - uses: actions/upload-artifact@v4 + if: matrix.node-version == 18 + with: + name: InfiniteCraftHelper + path: dist + if-no-files-found: error