From 9ad34a7fac575e547219b7c96b350d562215e4cd Mon Sep 17 00:00:00 2001 From: Quan Tran Date: Sat, 10 Aug 2024 18:02:26 -0700 Subject: [PATCH] Update GitHub actions --- .github/workflows/build.yml | 23 ++++++++++++----------- .github/workflows/docc.yml | 18 ++++++++++-------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index add3ce7..f7db21e 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: build +name: Build on: push: @@ -7,22 +7,23 @@ on: branches: [main] jobs: - swiftlint: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v3 - - name: swiftlint - uses: norio-nomura/action-swiftlint@3.2.1 build: runs-on: macos-latest + strategy: matrix: platform: [iOS, tvOS, watchOS, macOS, mac-catalyst] + steps: - - name: checkout - uses: actions/checkout@v2 - - name: build + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run swiftlint + uses: cirruslabs/swiftlint-action@v1 + with: + version: latest + + - name: Run xcodebuild run: | PLATFORM=${{ matrix.platform }} if [[ $PLATFORM == iOS ]]; then diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml index 755f895..8de15b3 100644 --- a/.github/workflows/docc.yml +++ b/.github/workflows/docc.yml @@ -1,17 +1,19 @@ -name: docc +name: DocC documentation on: - push: - tags: - - '*' + push: + tags: + - "*" jobs: docbuild: runs-on: macos-latest + steps: - - name: checkout - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: docc - run: ./toastui docc deploy \ No newline at end of file + + - name: Deploy documentation + run: ./toastui docc deploy