Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update various github action versions #84

Merged
merged 9 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
ios-sim:
description: 'iOS Simulator to use for testing'
required: true
token:
description: 'Token to use for publishing.'
required: true

runs:
using: composite
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/publish-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
runs:
using: composite
steps:
- uses: launchdarkly/gh-actions/actions/[email protected].1
- uses: launchdarkly/gh-actions/actions/[email protected].2
name: 'Publish to GitHub pages'
with:
docs_path: docs
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- xcode-version: 15.0.1
Expand All @@ -35,29 +36,25 @@ jobs:
with:
xcode-version: ${{ matrix.xcode-version }}
ios-sim: ${{ matrix.ios-sim }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/build-docs

linux-build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
swift-version:
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 5.7
- 5.8
- 5.9

container: swift:${{ matrix.swift-version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.

Expand All @@ -68,7 +65,7 @@ jobs:
name: Windows - Swift 5.9
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Swift
uses: compnerd/gha-setup-swift@cd348eb89f2f450b0664c07fb1cb66880addf17d
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/manual-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
xcode-version: 14.3.1
ios-sim: 'platform=iOS Simulator,name=iPhone 16,OS=16.4'
token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/build-docs

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.0
name: 'Get Cocoapods token'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
Expand All @@ -29,6 +29,7 @@ jobs:
with:
xcode-version: 14.3.1
ios-sim: 'platform=iOS Simulator,name=iPhone 16,OS=16.4'
token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/publish
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ jobs:
pull-requests: write

steps:
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: ${{ github.ref_name }}

- uses: actions/checkout@v4
Expand All @@ -36,7 +35,7 @@ jobs:
#
# These remaining steps are ONLY run if a release was actually created
#
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.0
if: ${{ steps.release.outputs.releases_created == 'true' }}
name: 'Get Cocoapods token'
with:
Expand All @@ -48,6 +47,7 @@ jobs:
with:
xcode-version: 14.3.1
ios-sim: 'platform=iOS Simulator,name=iPhone 16,OS=16.4'
token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/build-docs
if: ${{ steps.release.outputs.releases_created == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ start-contract-test-service-bg:

run-contract-tests:
curl -s https://raw.githubusercontent.com/launchdarkly/sse-contract-tests/main/downloader/run.sh \
| VERSION=v2 PARAMS="-url http://localhost:8000 -debug -stop-service-at-end -skip 'basic parsing/large message in one chunk' -skip 'basic parsing/large message in two chunks'" sh
| VERSION=v1 PARAMS="-url http://localhost:8000 -debug -stop-service-at-end -skip 'basic parsing/large message in one chunk' -skip 'basic parsing/large message in two chunks'" sh

contract-tests: build-contract-tests start-contract-test-service-bg run-contract-tests

Expand Down
Loading