Compare commits

...

5 Commits

Author SHA1 Message Date
WillAbides d3803eda60
Merge 4dedda9ac2 into df1a11710e 2024-09-11 16:02:55 +01:00
Joel Ambass df1a11710e
Merge pull request #500 from actions/Jcambass-patch-1
Add workflow file for publishing releases to immutable action package
2024-09-11 10:48:12 +02:00
Joel Ambass 49582f6476
Add workflow file for publishing releases to immutable action package
This workflow file publishes new action releases to the immutable action package of the same name as this repo.

This is part of the Immutable Actions project which is not yet fully released to the public. First party actions like this one are part of our initial testing of this feature.
2024-09-11 10:43:06 +02:00
Will Roden 4dedda9ac2 make column optional in matcher 2023-09-13 13:03:00 -05:00
Will Roden 643c7cb3e2 test for no-column match 2023-09-13 13:02:07 -05:00
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,22 @@
name: 'Publish Immutable Action Version'
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checking out
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/publish-immutable-action@0.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -645,6 +645,16 @@ describe('setup-go', () => {
expect(annotation.message).toBe('undefined: fmt.Printl');
});
it('matches test output without a column', async () => {
const line = '/path/to/main_test.go:13: expected true but got false';
const annotation = testMatch(line);
expect(annotation).toBeDefined();
expect(annotation.line).toBe(13);
expect(annotation.column).toBe(NaN);
expect(annotation.file).toBe('/path/to/main_test.go');
expect(annotation.message).toBe('expected true but got false');
});
// 1.13.1 => 1.13.1
// 1.13 => 1.13.0
// 1.10beta1 => 1.10.0-beta.1, 1.10rc1 => 1.10.0-rc.1

View File

@ -4,7 +4,7 @@
"owner": "go",
"pattern": [
{
"regexp": "^\\s*(.+\\.go):(?:(\\d+):(\\d+):)? (.*)",
"regexp": "^\\s*(.+\\.go):(?:(\\d+):(?:(\\d+):)?)? (.*)",
"file": 1,
"line": 2,
"column": 3,