fix(ci): use runs-on: ubuntu-latest (non-empty) for Gitea Actions v5
This commit is contained in:
1 parent
6e82a02e64
commit
0d943fe3dc
2 files changed
+8
-8
No files matched your search
@@ -13,7 +13,7 @@ env:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: []
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
|
||||
tests-unit:
|
||||
needs: check
|
||||
runs-on: []
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
|
||||
tests-integration:
|
||||
needs: check
|
||||
runs-on: []
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -88,7 +88,7 @@ jobs:
|
||||
|
||||
tests-ui:
|
||||
needs: check
|
||||
runs-on: []
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -119,7 +119,7 @@ jobs:
|
||||
preflight:
|
||||
needs: [tests-unit, tests-integration, tests-ui]
|
||||
if: gitea.event_name == 'pull_request' || (gitea.event_name == 'push' && startsWith(gitea.ref, 'refs/heads/codex/'))
|
||||
runs-on: []
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -148,7 +148,7 @@ jobs:
|
||||
deploy:
|
||||
needs: [tests-unit, tests-integration, tests-ui]
|
||||
if: gitea.event_name == 'push' && (gitea.ref_name == 'main' || gitea.ref_name == 'master')
|
||||
runs-on: []
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
@@ -34,12 +34,12 @@ describe("CI workflow", () => {
|
||||
workflow.indexOf("check:"),
|
||||
workflow.indexOf("\n deploy:"),
|
||||
);
|
||||
expect(checkJob).toContain("runs-on: []");
|
||||
expect(checkJob).toContain("runs-on: ubuntu-latest");
|
||||
});
|
||||
|
||||
it("deploy job runs on host runner", () => {
|
||||
const deployJob = workflow.slice(workflow.indexOf("\n deploy:"));
|
||||
expect(deployJob).toContain("runs-on: []");
|
||||
expect(deployJob).toContain("runs-on: ubuntu-latest");
|
||||
});
|
||||
|
||||
it("check includes toolchain check", () => {
|
||||
|
||||
Reference in new issue
Block a user