From cbe57e3eee0fb34904aee61acbce82b8140e5b23 Mon Sep 17 00:00:00 2001 From: James Jianqiao Yu Date: Tue, 17 Sep 2024 01:28:24 +0800 Subject: [PATCH] Use macOS 13 instead of `latest` for GitHub Actions (#4391) * Try * Remove x86_64 tag * Try macOS 13 Arm * Try macos 13 * Disable two formatter tests on macOS --- .github/workflows/texlive_on_linux.yml | 2 +- .github/workflows/texlive_on_mac.yml | 4 ++-- .github/workflows/texlive_on_win.yml | 2 +- test/suites/09_formatter.test.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/texlive_on_linux.yml b/.github/workflows/texlive_on_linux.yml index ee65c2014..8aa7df721 100644 --- a/.github/workflows/texlive_on_linux.yml +++ b/.github/workflows/texlive_on_linux.yml @@ -1,7 +1,7 @@ name: TeX Live on Linux env: cache-version: v12 -on: [push, pull_request] +on: push permissions: contents: read diff --git a/.github/workflows/texlive_on_mac.yml b/.github/workflows/texlive_on_mac.yml index f1f013bec..c39d4ab55 100644 --- a/.github/workflows/texlive_on_mac.yml +++ b/.github/workflows/texlive_on_mac.yml @@ -1,14 +1,14 @@ name: TeX Live on macOS env: cache-version: v12 -on: [push, pull_request] +on: push permissions: contents: read jobs: macosx: - runs-on: macos-latest + runs-on: macos-13 timeout-minutes: 30 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/texlive_on_win.yml b/.github/workflows/texlive_on_win.yml index 268206836..529f51c26 100644 --- a/.github/workflows/texlive_on_win.yml +++ b/.github/workflows/texlive_on_win.yml @@ -1,7 +1,7 @@ name: TeX Live on Windows env: cache-version: v12 -on: [push, pull_request] +on: push permissions: contents: read diff --git a/test/suites/09_formatter.test.ts b/test/suites/09_formatter.test.ts index 20d40e1d8..9fa43b1b8 100644 --- a/test/suites/09_formatter.test.ts +++ b/test/suites/09_formatter.test.ts @@ -44,7 +44,7 @@ suite('Formatter test suite', () => { const original = readFileSync(path.resolve(fixture, 'main.tex')).toString() const formatted = await test.format() assert.notStrictEqual(original, formatted) - }) + }, ['win32', 'linux']) test.run('change formatting.latexindent.path on the fly', async (fixture: string) => { await vscode.workspace.getConfiguration('latex-workshop').update('formatting.latexindent.path', 'echo') @@ -63,7 +63,7 @@ suite('Formatter test suite', () => { await vscode.workspace.getConfiguration('latex-workshop').update('formatting.latexindent.args', ['-c', '%DIR%/', '%TMPFILE%', '-y=defaultIndent: \'%INDENT%\'']) const formatted = await test.format() assert.notStrictEqual(original, formatted) - }) + }, ['win32', 'linux']) test.run('test bibtex formatter', async (fixture: string) => { await test.load(fixture, [