-
-
Notifications
You must be signed in to change notification settings - Fork 106
36 lines (34 loc) · 976 Bytes
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Testing
on: [push, pull_request]
jobs:
testing:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Installing packages
run: |
gem install bundler
- uses: actions/cache@v3
id: gopenpgp-cache
with:
path: go
key: ${{ runner.os }}-gopenpgp-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/gopenpgp_build.sh') }}
restore-keys: |
${{ runner.os }}-gopenpgp-${{ secrets.CACHE_VERSION }}-
- name: Bundle Install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: GopenPGP
if: ${{ steps.gopenpgp-cache.outputs.cache-hit == false }}
run: ./scripts/gopenpgp_build.sh
- name: Testing
run: bundle exec fastlane test