From 67fb1707da0bd52eaf4214253d86c1720108e158 Mon Sep 17 00:00:00 2001 From: Grigory Date: Fri, 31 Jan 2025 00:22:11 +0500 Subject: [PATCH] ci(workflows): update (#373) * ci(workflows): update actions * ci(workflows/test): cache vscode installation * remove redunant env vars https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables * chore(pr template): `npm run compile` -> `npm run build` * Revert "ci(workflows/test): cache vscode installation" This reverts commit 0294aa58cb7fb4e53ca9300ecec611fd3bdb4b3e. Don't remember why I was thinking that this significtly reduces workflow execution time, but now I cheked it and it doesn't. --- .github/PULL_REQUEST_TEMPLATE.md | 3 +-- .github/workflows/release.yml | 8 +++----- .github/workflows/test.yml | 5 ++--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index acb1a6f..f11cefa 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,6 +2,5 @@ Please fill in this template. - [ ] Use a meaningful title for the pull request. - [ ] Use meaningful commit messages. -- [ ] Run `tsc` w/o errors (same as `npm run compile`). +- [ ] Run `tsc` w/o errors (same as `npm run build`). - [ ] Run `npm run lint` w/o errors. - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d87184..56c26bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,14 +42,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: lts/* - name: Install - env: - CI: true run: npm ci - name: Create Changelog run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80776a0..c7367b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,9 +26,9 @@ jobs: - name: Preserve line endings run: git config --global core.autocrlf false - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - name: Start xvfb @@ -41,5 +41,4 @@ jobs: npm ci npm test env: - CI: true DISPLAY: ":99.0"