Skip to content

Commit

Permalink
chore(deps): upgrade github actions workflows to the latest components (
Browse files Browse the repository at this point in the history
#17)

Co-authored-by: Matt Wise <[email protected]>
  • Loading branch information
diranged and diranged authored Feb 11, 2024
1 parent ed069b2 commit c1925c2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ export class GitHubWorkflow extends PipelineBase {
return [
{
name: 'Checkout',
uses: 'actions/checkout@v3',
uses: 'actions/checkout@v4',
},
];
}
Expand Down
24 changes: 12 additions & 12 deletions test/__snapshots__/github.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/__snapshots__/runner-provided.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions test/__snapshots__/stage-options.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions test/stage-options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ test('can set pre/post github action job step', () => {
jobSteps: [
{
name: 'Checkout',
uses: 'actions/checkout@v3',
uses: 'actions/checkout@v4',
},
{
name: 'post deploy action',
Expand All @@ -296,7 +296,7 @@ test('can set pre/post github action job step', () => {
expect(workflowFileContents).toMatchSnapshot();
expect(workflowFileContents).toContain('[email protected]');
expect(workflowFileContents).toContain('[email protected]');
expect(workflowFileContents).toContain('actions/checkout@v3');
expect(workflowFileContents).toContain('actions/checkout@v4');
expect(workflowFileContents).toContain('contains(fromJson(\'["push", "pull_request"]\'), github.event_name)');
expect(workflowFileContents).toContain("success() && contains(github.event.issue.labels.*.name, 'deploy')");
});
Expand Down Expand Up @@ -417,7 +417,7 @@ test('github stages in waves works', () => {
jobSteps: [
{
name: 'Checkout',
uses: 'actions/checkout@v3',
uses: 'actions/checkout@v4',
},
{
name: 'post wave action',
Expand Down Expand Up @@ -495,7 +495,7 @@ test('stages in pipeline works with `if`', () => {

const workflowFileContents = readFileSync(pipeline.workflowPath, 'utf-8');
expect(workflowFileContents).toMatchSnapshot();
expect(workflowFileContents).toContain('actions/checkout@v3');
expect(workflowFileContents).toContain('actions/checkout@v4');

const yaml = YAML.parse(workflowFileContents);
expect(yaml).toMatchObject({
Expand Down Expand Up @@ -550,7 +550,7 @@ test('create stages with different awsCreds', () => {

const workflowFileContents = readFileSync(pipeline.workflowPath, 'utf-8');
expect(workflowFileContents).toMatchSnapshot();
expect(workflowFileContents).toContain('actions/checkout@v3');
expect(workflowFileContents).toContain('actions/checkout@v4');

const yaml = YAML.parse(workflowFileContents);
expect(yaml).toMatchObject({
Expand Down

0 comments on commit c1925c2

Please sign in to comment.