Skip to content

Commit

Permalink
Pin GitHub Actions to commit (#112)
Browse files Browse the repository at this point in the history
update github actions to commits

Co-authored-by: Dan Kift <daniel.kift@shopify.com>
  • Loading branch information
lynnsh and kiftio authored Aug 12, 2024
1 parent f81b619 commit 68ac822
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/actions/install-cocoapods/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
steps:
- name: Cache cocoapods
id: cache-cocoapods
uses: actions/cache@v3
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: |
**/ios/Pods
Expand All @@ -26,4 +26,3 @@ runs:
cd ios
NO_FLIPPER=1 bundle exec pod install
cd $ROOT
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 20

- name: Cache turbo build setup
uses: actions/cache@v3
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
Expand All @@ -19,7 +19,7 @@ runs:
- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: |
**/node_modules
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/use-turbo-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
using: composite
steps:
- name: Cache turbo build setup
uses: actions/cache@v3
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
name: Lint Swift code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Run SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
uses: norio-nomura/action-swiftlint@b3fcfb2c5a82d46c48495dda0bcb4c0e981bfc54 # 3.2.1
with:
args: --strict

license:
name: Verify license headers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- run: ./scripts/copy_license && git diff --name-only --exit-code

Expand All @@ -32,7 +32,7 @@ jobs:
env:
TERM: xterm
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -46,7 +46,7 @@ jobs:
name: Lint module + sample
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -60,7 +60,7 @@ jobs:
name: Run jest tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -73,14 +73,14 @@ jobs:
needs: [lint, test]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup
uses: ./.github/actions/setup

- name: Install JDK
# if: env.turbo_cache_hit != 1
uses: actions/setup-java@v3
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: 'zulu'
java-version: '17'
Expand All @@ -96,7 +96,7 @@ jobs:
needs: [lint, lint-swift, test]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup iOS Simulator
uses: ./.github/actions/setup-simulator
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deprecate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
issues: write

steps:
- uses: actions/stale@v9
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 68ac822

Please sign in to comment.