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

Update GH actions: checkout to v4 and setup-go to v5 #375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
name: Create GitHub deployment
id: deployment
with:
token: '${{ github.token }}'
token: ${{ github.token }}
environment-url: ${{ env.NGROK_URL }}
environment: staging

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: kill old server
run: systemctl --user stop goios

- name: compile
run: |
cd restapi
Expand All @@ -52,16 +52,16 @@ jobs:
if: success()
uses: chrnorm/deployment-status@v2
with:
token: '${{ github.token }}'
token: ${{ github.token }}
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'success'
state: success"

- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: '${{ github.token }}'
token: ${{ github.token }}
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'failure'
state: failure
22 changes: 11 additions & 11 deletions .github/workflows/real-device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ on:
workflow_dispatch:
inputs:
ngrok:
description: 'ngrok host:port'
description: "ngrok host:port"
required: true
default: ''
default: ""
udid:
description: 'device udid'
description: "device udid"
required: true
default: ''
default: ""
# run this locally to get a device exposed on ngrok
# ngrok tcp 9999
# socat TCP-LISTEN:9999,reuseaddr,fork UNIX-CONNECT:/var/run/usbmuxd
Expand All @@ -18,7 +18,8 @@ jobs:
sign_app_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: create profile
run: |
echo "$P12_FILE" | base64 --decode > testdata/test1.p12
Expand Down Expand Up @@ -53,16 +54,16 @@ jobs:
env:
UDID: ${{ github.event.inputs.udid }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: compile
run: go build

- name: Download mac signed wda from previous job
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -95,13 +96,12 @@ jobs:
- sign_app_on_mac
- test_on_windows
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Download mac release from previous job
uses: actions/download-artifact@v3
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
build_on_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create Release
- name: Create release
id: create_release
uses: zendesk/action-create-release@v1
env:
Expand All @@ -19,10 +19,9 @@ jobs:
tag_schema: semantic

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Build
run: |
Expand All @@ -43,13 +42,12 @@ jobs:
runs-on: macos-latest
needs: build_on_windows
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Download win release from previous job
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -83,13 +81,12 @@ jobs:
runs-on: ubuntu-latest
needs: build_on_mac
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Download mac release from previous job
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -129,7 +126,7 @@ jobs:

- uses: AButler/[email protected]
with:
files: '*.zip'
files: "*.zip"
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ env.release_tag }}

Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ jobs:
test_on_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

#- name: Install Libusb
# run: choco install
# run: choco install

- name: Build executable
run: go build
Expand All @@ -26,13 +25,13 @@ jobs:
test_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: update
run: sudo apt-get update

Expand Down