Skip to content

Commit

Permalink
Updating artifact file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters committed Jul 21, 2023
1 parent 93c4a00 commit d0d613f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-and-run-unit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ runs:
- name: Build and Test
shell: bash
run: |
xcodebuild clean test -resultBundlePath TestResults/ResultBundle.xcresult -workspace "ApolloDev.xcworkspace" -scheme "${{ inputs.scheme }}" -destination "${{ inputs.destination }}" -testPlan "${{ inputs.test-plan }}" | xcbeautify
xcodebuild clean test -resultBundlePath TestResults/ResultBundle.xcresult -derivedDataPath DerivedData -workspace "ApolloDev.xcworkspace" -scheme "${{ inputs.scheme }}" -destination "${{ inputs.destination }}" -testPlan "${{ inputs.test-plan }}" | xcbeautify
# Add step for saving build/test artifacts
53 changes: 29 additions & 24 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,27 @@ jobs:
- destination: platform=macOS,arch=x86_64
scheme: ApolloTests
test-plan: Apollo-CITestPlan
name: macOS_current
# iOS_current
- destination: platform=iOS Simulator,OS=16.4,name=iPhone 14
scheme: ApolloTests
test-plan: Apollo-CITestPlan
name: iOS_current
# iOS_previous
- destination: platform=iOS Simulator,OS=15.5,name=iPhone 13
scheme: ApolloTests
test-plan: Apollo-CITestPlan
name: iOS_previous
# tvOS_current
- destination: platform=tvOS Simulator,OS=16.4,name=Apple TV
scheme: ApolloTests
test-plan: Apollo-CITestPlan
name: tvOS_current
# Codegen CLI Test
- destination: platform=macOS,arch=x86_64
scheme: CodegenCLITests
test-plan: CodegenCLITestPlan
name: Codegen_CLI
name: Build and Test ${{ matrix.test-plan }}
steps:
- uses: maxim-lobanov/setup-xcode@v1
Expand Down Expand Up @@ -89,13 +94,13 @@ jobs:
- name: Save xcodebuild logs
uses: actions/upload-artifact@v3
with:
name: logs
name: ${{ matrix.name }}-logs
path: |
logs
DerivedData/Logs/Build
- name: Save crash logs
uses: actions/upload-artifact@v3
with:
name: crashes
name: ${{ matrix.name }}-crashes
path: |
~/Library/Logs/DiagnosticReports
- name: Zip Result Bundle
Expand All @@ -106,27 +111,27 @@ jobs:
- name: Save test results
uses: actions/upload-artifact@v3
with:
name: results
name: ${{ matrix.name }}-results
path: |
TestResults/ResultBundle.zip
run-codegen-test-configurations:
runs-on: macos-13-xl
name: Run Codegen Test Configurations
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3.1'
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Repo
id: setup-repo
uses: ./.github/actions/setup-repo
- name: Install XCBeautify
shell: bash
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install xcbeautify
- name: Test Codegen Configurations
shell: bash
run: |
./scripts/run-test-codegen-configurations.sh -t
# run-codegen-test-configurations:
# runs-on: macos-13-xl
# name: Run Codegen Test Configurations
# steps:
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '14.3.1'
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Setup Repo
# id: setup-repo
# uses: ./.github/actions/setup-repo
# - name: Install XCBeautify
# shell: bash
# run: |
# HOMEBREW_NO_AUTO_UPDATE=1 brew install xcbeautify
# - name: Test Codegen Configurations
# shell: bash
# run: |
# ./scripts/run-test-codegen-configurations.sh -t

0 comments on commit d0d613f

Please sign in to comment.