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

e2e #324

Merged
merged 27 commits into from
Dec 20, 2022
Merged

e2e #324

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d2bebf4
fixed action.yml
web-flow Dec 9, 2022
4249048
updated .gitignore
web-flow Dec 9, 2022
8e6374a
added scripts to build package, run e2e tests and updated dependencies
web-flow Dec 9, 2022
ab28087
made action argument a service and executed it in the action runner t…
web-flow Dec 12, 2022
28dde51
fixed bug in getting nodes to checkout and added artifact name validator
web-flow Dec 12, 2022
44ef402
improved logging in checkout service
web-flow Dec 12, 2022
fa508c3
changed logging from info to debugging for regex-command-treatment
web-flow Dec 12, 2022
9fbdf54
getCloneUrl returns a path to the local repository when running e2e t…
web-flow Dec 12, 2022
8fc9775
fixed bug in git version and clone
web-flow Dec 12, 2022
d152c99
improved error msg in getForkName
web-flow Dec 12, 2022
46d6d7e
configure octokit to use proxy if defined
web-flow Dec 12, 2022
1ae98c5
improved logging and annotations during flow execution
web-flow Dec 12, 2022
bd55666
improved logging for pre and post
web-flow Dec 12, 2022
49557db
updated test cases
web-flow Dec 12, 2022
12cc82a
added e2e tests for single pr flow
web-flow Dec 12, 2022
abde4a7
fixed clone case
web-flow Dec 13, 2022
da7a13d
added helper to enable disable easy logging
web-flow Dec 14, 2022
0734d74
added cross-pr tests
web-flow Dec 14, 2022
1c675f0
updated dependencies file and single pr tests
web-flow Dec 14, 2022
2486bd4
allow unrelated history merge
web-flow Dec 14, 2022
c98938f
updated gitignore and package.json
web-flow Dec 14, 2022
bdf7679
added full downstream tests
Dec 14, 2022
9199021
updated other e2e tests with comments and simplifications
Dec 14, 2022
8eb81a4
trimmed white spaces from additional-flag input
Dec 15, 2022
96a359e
added branch e2e tests
Dec 15, 2022
fd23465
added e2e pr checks
Dec 19, 2022
a9b293d
increase test timeout limit
Dec 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Pull Request Checks
on: pull_request

jobs:
build:
unit:
strategy:
matrix:
node-version: [14.x, 16.x]
Expand All @@ -22,3 +22,20 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:report

e2e:
strategy:
matrix:
node-version: [14.x, 16.x]
os: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test:e2e
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ node_modules/
locally_execution/**/*
test/**/_temp/**/*
build_chain_20*/**/*
yarn.lock
/project-dependencies.yaml
coverage/
test-report.xml
.idea/
.vscode/
.vscode/
dist/
build/
*.log
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ inputs:
required: false
skip-execution:
description: "skips execution and artifacts archiving for all projects. Overrides skip-project-execution"
default: false
default: "false"
required: false
skip-project-execution:
description: "skips execution and artifacts archiving for certain projects"
required: false
skip-checkout:
description: "Skip checkout for all projects. Overrides skip-project-checkout"
default: false
default: "false"
required: false
skip-project-checkout:
description: "A list of projects to skip checkout"
required: false
skip-parallel-checkout:
description: "Checkout the project sequentially or parallely"
default: false
default: "false"
required: false
custom-command-treatment:
description: "<RegEx||ReplacementEx> Regex defines the regular expression for what you want to replace with the ReplacementEx"
Expand All @@ -45,7 +45,7 @@ inputs:
description: "The prefix to identify the annotations for different jobs running for the same Action"
required: false
runs:
using: "node14"
using: "node16"
main: "dist/index.js"
branding:
icon: "box"
Expand Down
3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const jestConfig: Config.InitialOptions = {
},
clearMocks: true,
resetMocks: true,
coveragePathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/test/"]
coveragePathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/test/"],
testTimeout: 120000
};
export default jestConfig;