Skip to content

Commit cb03b65

Browse files
committed
add debugging code
1 parent 72234d5 commit cb03b65

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/integration-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ env:
1717

1818
jobs:
1919
build:
20-
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os:
24+
- ubuntu-latest
25+
- macos-latest
26+
- macos-latest-xlarge
27+
runs-on: ${{ matrix.os }}
2128
steps:
2229
- name: Checkout repository
2330
uses: actions/checkout@v3
@@ -51,7 +58,7 @@ jobs:
5158
- name: Download results
5259
uses: actions/download-artifact@v4
5360
with:
54-
name: results-push
61+
name: ${{ runner.name }}-results-push
5562
path: artifact
5663
- name: Check results
5764
working-directory: artifact

src/actions.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ import { endGroup, getInput, startGroup } from '@actions/core'
33
import { context, getOctokit } from '@actions/github'
44
import { retry } from '@octokit/plugin-retry'
55
import { Md5 } from 'ts-md5'
6+
import { DefaultArtifactClient, UploadArtifactResponse } from '@actions/artifact'
67

7-
export async function uploadArtifact(artifactName: string, ...files: string[]) {
8-
await create.uploadArtifact(artifactName, files, '.')
8+
const artifact = new DefaultArtifactClient()
9+
10+
export function uploadArtifact(
11+
artifactName: string,
12+
...files: string[]
13+
): Promise<UploadArtifactResponse> {
14+
startGroup('Uploading artifact ' + artifactName)
15+
var reponse = artifact.uploadArtifact(artifactName, files, '.')
916
endGroup()
17+
return reponse
1018
}
1119

1220
export async function downloadArtifact(artifactName: string) {

0 commit comments

Comments
 (0)