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:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: []
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
tests-unit:
|
tests-unit:
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: []
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
|
|
||||||
tests-integration:
|
tests-integration:
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: []
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
|
|
||||||
tests-ui:
|
tests-ui:
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: []
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -119,7 +119,7 @@ jobs:
|
|||||||
preflight:
|
preflight:
|
||||||
needs: [tests-unit, tests-integration, tests-ui]
|
needs: [tests-unit, tests-integration, tests-ui]
|
||||||
if: gitea.event_name == 'pull_request' || (gitea.event_name == 'push' && startsWith(gitea.ref, 'refs/heads/codex/'))
|
if: gitea.event_name == 'pull_request' || (gitea.event_name == 'push' && startsWith(gitea.ref, 'refs/heads/codex/'))
|
||||||
runs-on: []
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -148,7 +148,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
needs: [tests-unit, tests-integration, tests-ui]
|
needs: [tests-unit, tests-integration, tests-ui]
|
||||||
if: gitea.event_name == 'push' && (gitea.ref_name == 'main' || gitea.ref_name == 'master')
|
if: gitea.event_name == 'push' && (gitea.ref_name == 'main' || gitea.ref_name == 'master')
|
||||||
runs-on: []
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|||||||
@@ -34,12 +34,12 @@ describe("CI workflow", () => {
|
|||||||
workflow.indexOf("check:"),
|
workflow.indexOf("check:"),
|
||||||
workflow.indexOf("\n deploy:"),
|
workflow.indexOf("\n deploy:"),
|
||||||
);
|
);
|
||||||
expect(checkJob).toContain("runs-on: []");
|
expect(checkJob).toContain("runs-on: ubuntu-latest");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("deploy job runs on host runner", () => {
|
it("deploy job runs on host runner", () => {
|
||||||
const deployJob = workflow.slice(workflow.indexOf("\n deploy:"));
|
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", () => {
|
it("check includes toolchain check", () => {
|
||||||
|
|||||||
Reference in new issue
Block a user