Commit Graph

5 Commits

Author SHA1 Message Date
Axel Hecht
4e40ddd3f5
Test current code base as an integration test for PRs and pushes (#505)
* Add a build step to create lib and node_modules artifact

* Run integration test with built dist and current SHA as base

For pull requests, the github.sha is the sha of the merge to the
target branch, not the head of the PR. Special case that.

* Use v2 checkout, and DRY_RUN for the integration test.

I also made the branches more generic, as there are now more of them.

* Fix #536, don't push at all on dryRun

Also add tests for dryRun and singleCommit and generateBranch
code flows.

* Try to fix dryRun on new remote branches, refactor fetch

* Try to fix dryRun, only fetch if origin branch exists

* Refactor worktree setup to include branch generation and setup for singleCommit

This is a continuation of the no-checkout work, and sadly suggested pretty
intensive changes.

* Set up git config to fix tests, also make debugging easier

* Add matrix for existing and non-existing branch

* Add matrix for singleCommit and not

* Drop GITHUB_TOKEN, add DRY_RUN to action.yml

* When deploying existing branch, add a modifcation and deploy again

* Force branch checkout to work in redeployment scenarios

* Make singleCommit easier to see in job descriptions

* Review comments

* Add a test-only property to action to test code paths with remote branch.

* Introduce TestFlag enum to signal different test scenarios to unit tests

* Fix util.test.ts
2020-12-14 12:30:22 -05:00
Axel Hecht
c4d24de7a0
Set up eslint for test files. (#517) 2020-12-07 10:12:15 -05:00
Philipp Panteleev
eb54fe3562
Bump eslint-plugin-github version + fix eslint issues (#437)
* Bump eslint-plugin-github and eslint rules update

* ban-ts-comment rule was enabled
2020-10-01 22:20:40 -04:00
JamesIves
9ce7c5f8d0 Linting errors 2020-03-09 09:19:16 -04:00
James Ives
b2acf87217
Migrates to eslint (#193) 2020-03-06 22:36:56 -05:00