Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lenni009/test-build-vite-action
Builds a Vite project and comments any errors on a pull request
https://github.com/lenni009/test-build-vite-action
github-actions vite
Last synced: about 1 month ago
JSON representation
Builds a Vite project and comments any errors on a pull request
- Host: GitHub
- URL: https://github.com/lenni009/test-build-vite-action
- Owner: Lenni009
- License: mit
- Created: 2023-06-15T10:37:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-25T14:22:19.000Z (9 months ago)
- Last Synced: 2024-02-25T15:34:27.148Z (9 months ago)
- Topics: github-actions, vite
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-build-vite-action
Builds a NPM Vite project and comments any errors on a pull request.## Summary
This action is intended to run on pull requests.
It only works for NPM, yarn and pnpm are not supported.
If it detects errors, the action will fail and leave a comment under the PR with the error, making sure the production CI/CD pipeline won't fail.### Usage
```yml
on:
pull_request:
types: [opened, synchronize]jobs:
test:
runs-on: ubuntu-latestpermissions:
pull-requests: write
contents: writesteps:
- name: Checkout Repo
uses: actions/checkout@v3- name: Test Build
uses: Lenni009/test-build-vite-action@main
with:
node-version: 18
```### Paramters
- `node-version`: Allows you to specify a node version to use. Defaults to `latest`.