From 7ae97a196c6892eb70420ccece801651a52cd888 Mon Sep 17 00:00:00 2001 From: whywaita Date: Fri, 18 Oct 2024 14:51:24 +0900 Subject: [PATCH] Add Status badge --- .github/workflows/ci-macos-14.yaml | 20 ++++++++++++++++++++ .github/workflows/ci-macos-15.yaml | 20 ++++++++++++++++++++ .github/workflows/ci-macos-latest.yaml | 20 ++++++++++++++++++++ .github/workflows/ci.yml | 20 +------------------- README.md | 6 +++++- 5 files changed, 66 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci-macos-14.yaml create mode 100644 .github/workflows/ci-macos-15.yaml create mode 100644 .github/workflows/ci-macos-latest.yaml diff --git a/.github/workflows/ci-macos-14.yaml b/.github/workflows/ci-macos-14.yaml new file mode 100644 index 0000000..d3380af --- /dev/null +++ b/.github/workflows/ci-macos-14.yaml @@ -0,0 +1,20 @@ +name: Test - macOS-14 + +on: + push: + branches: [ "main" ] + pull_request: + workflow_dispatch: + +jobs: + test-macos-14: + runs-on: macos-14 + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup-deno-with-cache + - id: test + run: deno test -A + - name: Run self + uses: ./ + with: + success-on-miss: false \ No newline at end of file diff --git a/.github/workflows/ci-macos-15.yaml b/.github/workflows/ci-macos-15.yaml new file mode 100644 index 0000000..0f87a59 --- /dev/null +++ b/.github/workflows/ci-macos-15.yaml @@ -0,0 +1,20 @@ +name: Test - macOS-15 + +on: + push: + branches: [ "main" ] + pull_request: + workflow_dispatch: + +jobs: + test-macos-15: + runs-on: macos-15 + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup-deno-with-cache + - id: test + run: deno test -A + - name: Run self + uses: ./ + with: + success-on-miss: false \ No newline at end of file diff --git a/.github/workflows/ci-macos-latest.yaml b/.github/workflows/ci-macos-latest.yaml new file mode 100644 index 0000000..33bbfea --- /dev/null +++ b/.github/workflows/ci-macos-latest.yaml @@ -0,0 +1,20 @@ +name: Test - macOS-latest + +on: + push: + branches: [ "main" ] + pull_request: + workflow_dispatch: + +jobs: + test-macos-latest: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup-deno-with-cache + - id: test + run: deno test -A + - name: Run self + uses: ./ + with: + success-on-miss: false \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7c7796..23be9af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,22 +29,4 @@ jobs: echo "Detected uncommitted changes after build. See status below:" git diff exit 1 - fi - test: - strategy: - matrix: - os: - - macos-latest - - macos-14 - - macos-15 - fail-fast: false - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/setup-deno-with-cache - - id: test - run: deno test -A - - name: Run self - uses: ./ - with: - success-on-miss: false + fi \ No newline at end of file diff --git a/README.md b/README.md index 7d509fd..167e01d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # CyberAgent/action-is-installed-xcode -[![CI](https://github.com/CyberAgent/action-is-installed-xcode/actions/workflows/ci.yml/badge.svg)](https://github.com/CyberAgent/action-is-installed-xcode/actions/workflows/ci.yml) +| OS | Status | +| :----------: | :--------------------------------------------------------------------------------------------------------------: | +| macos-latest | [![CI](https://github.com/CyberAgent/action-is-installed-xcode/actions/workflows/ci-macos-latest.yml/badge.svg)] | +| macos-14 | [![CI](https://github.com/CyberAgent/action-is-installed-xcode/actions/workflows/ci-macos-14.yml/badge.svg)] | +| macos-15 | [![CI](https://github.com/CyberAgent/action-is-installed-xcode/actions/workflows/ci-macos-15.yml/badge.svg)] | CyberAgent/action-is-installed-xcode checks to see if the same Xcode version as GitHub-hosted is installed.