Initial commit #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
"on": | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Roblox/setup-foreman@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enable corepack | |
run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Install packages | |
run: yarn install --immutable | |
- name: Run npmluau | |
run: yarn run prepare | |
- name: Run linter | |
# lint with selene for now because luau-lsp cannot ignore errors | |
# in node_modules | |
run: yarn run lint:selene | |
- name: Verify code style | |
run: yarn run style-check | |
- name: Build assets | |
run: yarn run build |