Skip to content

Commit

Permalink
Update action versions, enable caching for python, node, golang, ruby (
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus committed Jul 14, 2022
1 parent 6fea300 commit b3cc4be
Show file tree
Hide file tree
Showing 28 changed files with 54 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buf-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
environment:
name: buf.build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v0.5.0
- uses: bufbuild/buf-push-action@v1
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
matrix:
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows]] # , [macos-latest, macos] ] - as usual, macos blocks DLL execution lol
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download ${{ matrix.os-artifact[0] }} binaries
uses: dawidd6/action-download-artifact@v2.17.0
with:
Expand All @@ -40,9 +40,10 @@ jobs:
- name: Set up Dart
uses: dart-lang/setup-dart@v1
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Build, Test, Pack
run: |
dart pub get
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Get everything so that the `mkdocs-git-authors` plugin answers correctly
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
name: Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
matrix:
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download ${{ matrix.os-artifact[0] }} binaries
uses: dawidd6/action-download-artifact@v2.21.1
with:
Expand All @@ -40,10 +40,13 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true
cache-dependency-path: go/go.sum
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Build and Test Golang
run: |
go version
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ jobs:
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '15'
distribution: 'adopt'
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Download ${{ matrix.os-artifact[0] }} binaries
uses: dawidd6/action-download-artifact@v2.17.0
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ jobs:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ^1.17
cache: true
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]
python-version: [3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download ${{ matrix.os-artifact[0] }} binaries
uses: dawidd6/action-download-artifact@v2.17.0
with:
Expand All @@ -38,7 +38,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ matrix.os-artifact[1] }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ jobs:
ruby-version: '3.1'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Build and run tests
run: |
gem install bundler
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run:
working-directory: ./cli
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Build and test Rust
run: |
rustup component add rustfmt
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
run:
working-directory: web
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
name: Setup Node v${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: |
npm install
npm run build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
name: Release Dart Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Dart
uses: dart-lang/setup-dart@v1
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: trinsic-id/set-version@v0.1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Get everything so that the `mkdocs-git-authors` plugin answers correctly
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
- run: |
pip install -r ./docs/requirements.txt
pip install -r ./python/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
environment:
name: nuget.org
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/setup-dotnet@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Tag golang
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: trinsic-id/set-version@v0.1
id: setversion
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: trinsic-id/set-version@v0.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1.76.0
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- uses: trinsic-id/set-version@v0.1
id: setversion
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- uses: trinsic-id/set-version@v0.1
id: setversion
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- uses: trinsic-id/set-version@v0.1
id: setversion
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- uses: trinsic-id/set-version@v0.1
id: setversion
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run:
working-directory: "web"
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16.x'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows] ] # , macos-latest ] disabled due to macos not allowing us to set the LD_LIBRARY_PATH as a github action
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download ${{ matrix.os-artifact[0] }} binaries
uses: dawidd6/action-download-artifact@v2.17.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Run .NET SDK Tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby-version: [ '2.7', '3.0', '3.1' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build, Test, Pack
run: |
npm install
Expand Down
2 changes: 1 addition & 1 deletion samples/dotnet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
ProofDocumentJson = credentialProof.ProofDocumentJson
});
Console.WriteLine($"Verification result: {valid}");
valid.IsValid.Should().BeTrue();
valid.ValidationResults["SignatureVerification"].IsValid.Should().BeTrue();
// }

static class Extensions
Expand Down

0 comments on commit b3cc4be

Please sign in to comment.