feat(studio-bridge): add Linux/Wine support for headless Studio #531
This file contains hidden or 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: [pull_request] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Fetch base branch for changeset diff | |
| run: git fetch origin ${{ github.base_ref }} --depth=1 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '21' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| cache: true | |
| - name: Setup registries | |
| run: | | |
| echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | |
| echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> ~/.npmrc | |
| echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | |
| echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Setup Aftman | |
| uses: ok-nick/setup-aftman@v0.4.2 | |
| with: | |
| version: 'v0.3.0' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| cache: true | |
| - name: Build all tools | |
| run: pnpm -r --filter './tools/**' run build | |
| - name: Install nevermore-cli locally | |
| run: npm install --ignore-scripts -g . | |
| working-directory: tools/nevermore-cli | |
| - name: Run tests | |
| id: run-tests | |
| run: nevermore batch test --cloud --aggregated --base origin/${{ github.base_ref }} --output test-results.json --yes --verbose --logs | |
| env: | |
| ROBLOX_OPEN_CLOUD_API_KEY: ${{ secrets.ROBLOX_UNIT_TEST_API_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build sourcemap for annotation resolution | |
| if: always() | |
| run: npm run build:sourcemap | |
| - name: Post test results | |
| if: always() | |
| run: nevermore tools post-test-results test-results.json --yes --run-outcome ${{ steps.run-tests.outcome }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |