chore(ALL): updated the dependencies #167
Workflow file for this run
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: The CI workflow on push | |
on: | |
push: | |
branches: | |
- '*' | |
- '!main' | |
permissions: | |
contents: read | |
jobs: | |
build-unity: | |
env: | |
listPublishDirectory: Website | |
packagePath: Packages/${{ vars.PACKAGE_NAME }} | |
pathToCi: ci | |
unityPackage: ${{ vars.PACKAGE_NAME }}-feature.unitypackage | |
zipFile: ${{ vars.PACKAGE_NAME }}-feature.zip | |
name: The build process for VPM packages for the Unity | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Local Repository | |
uses: actions/checkout@v4 | |
- name: Zip the Package for testing | |
run: zip -r "${{ github.workspace }}/${{ env.zipFile }}" . | |
working-directory: '${{ env.packagePath }}' | |
- name: Build a list of .meta files for future use | |
run: find "${{ env.packagePath }}/" -name '*.meta' -type f >> metaList | |
- name: Make a UnityPackage version of the Package for release | |
uses: pCYSl5EDgo/create-unitypackage@v1 | |
with: | |
include-files: metaList | |
package-path: ${{ env.unityPackage }} | |
- name: Checkout Automation Repository without removing prior checkouts | |
uses: actions/checkout@v4 | |
with: | |
clean: false | |
path: ${{ env.pathToCi }} | |
repository: vrchat-community/package-list-action | |
- name: Deploy the global.json file | |
run: cp "${{ github.workspace }}/global.json" "${{ env.pathToCi }}/" | |
- name: Load cached data from previous runs | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} | |
path: | | |
${{ env.pathToCi }}/.nuke/temp | |
~/.nuget/packages | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
name: Build Package Version Listing with Nuke | |
run: '"${{ env.pathToCi }}/build.cmd" BuildRepoListing --root "${{ env.pathToCi }}" --list-publish-directory "$GITHUB_WORKSPACE/${{ env.listPublishDirectory }}" --current-package-name "${{ vars.PACKAGE_NAME }}"' | |
build-web: | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
env: | |
COREPACK_INTEGRITY_KEYS: 0 | |
name: The build process for the NPM packages and the website | |
runs-on: ${{ matrix.platform.os }} | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Stages the pushed branch | |
uses: actions/checkout@v4 | |
- name: Pre-prepare the Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
- name: Install the latest corepack explicitly | |
run: npm install --force -g corepack@latest | |
- name: Enable the corepack because of the pnpm | |
run: corepack enable | |
- name: Post-prepare the Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
cache: ${{ !env.ACT && 'pnpm' || '' }} | |
node-version-file: .node-version | |
- env: | |
HUSKY: 0 | |
name: Install the dependencies | |
run: pnpm install --prefer-frozen-lockfile | |
- name: Run the build | |
run: pnpm run build | |
- name: Run the tests | |
run: pnpm run test | |
strategy: | |
matrix: | |
platform: | |
- os: ubuntu-latest | |
shell: bash | |
- os: windows-latest | |
shell: bash | |
- os: windows-latest | |
shell: powershell | |
fail-fast: false | |
timeout-minutes: 30 |