Commit graph

77 commits

Author SHA1 Message Date
Mac Siri
f368a4ce7f
Fix broken cypress code coverage (#19282) 2023-03-30 12:36:12 -04:00
Mac Siri
64c10957e3
Update CODEOWNERS (#19276) 2023-03-29 17:20:41 -04:00
Mac Siri
88108b3037
Implement code coverage for Cypress (#19250) 2023-03-29 15:37:50 -04:00
Mac Siri
1e1064de0b
Undo changes to Sprockets::UglifierWithSourceMapsCompressor (#19261) 2023-03-24 12:48:59 -04:00
Mac Siri
b7f00706bd
[CI] Adjust cancel-in-progress concurrency (#19244)
* [CI] Adjust cancel-in-progress concurrency

* Revert "[CI] Lock setup-ruby to v1.144.0 (#19243)"

This reverts commit 44a3527983.
2023-03-21 10:05:31 -04:00
Mac Siri
44a3527983
[CI] Lock setup-ruby to v1.144.0 (#19243) 2023-03-20 11:17:18 -04:00
Mac Siri
047a68cc66
[CI] Add concurrency & remove slack alert (#19237)
* Remove CI's slack report

* Add concurrency to per branch

* Dynamic cancel-in-progress
2023-03-20 08:59:14 -04:00
Mac Siri
bfe797f44d
Create cleanup-cache.yml (#19232) 2023-03-17 12:18:51 -04:00
Mac Siri
2e759c823d
Merge bundle-audit and rubocop into CI & add precompile step (#19228) 2023-03-16 15:34:38 -04:00
Mac Siri
61bd41930d
Add build steps and expand CI node (#19220)
* Add build step

* Use retrieve cache instead for tests

* Add assets_precompile step

* Rename method

* Forgot ruby

* Typo

* Try exit early

* Speed up yarn_install

* Try again

* why

* Oops

* debug echo

* Move order

* Refine lookup process

* Synxtax error

* Remove redundant yarn install

* Separate Storybook

* Simplify

* Revert "Simplify"

This reverts commit 2e07724dcc4d08d03b9f50c41669f9ee94045002.

* Expand node counts

* Experimental bypass

* Remove verbose cypress install

* Revert "Remove verbose cypress install"

This reverts commit 5ace028feb91f44358a384bfaa8d3da1cdf68c07.

* Provide precompiled asset to RSpec

* lets try 10 nodes

* Only cache webpack

* Test speed with 8 node counts

* No need for assets precompile
2023-03-15 09:36:30 -04:00
Mac Siri
09291b4205
Update CI node count (#19174) 2023-02-27 12:54:05 -05:00
Adam Vollrath
4668e11dcc
Improvements to Uffizzi Preview Workflows (#19029) 2023-02-24 12:34:02 -05:00
Mac Siri
ff3c3c9324
[CI] Collect RSpec artifacts (#19128)
Co-authored-by: Lawrence <lawrence@forem.com>
2023-02-22 12:52:52 -05:00
Aramayis
c758272aec
Fix Uffizzi sign in bug(#19100) 2023-02-20 16:21:05 -05:00
Joshua Wehner
048f0cff2a
[CI] Specifying node version explicitly (#19154) 2023-02-20 09:01:20 -05:00
depfu[bot]
624240a348
[js] Upgrade cypress: 10.11.0 → 12.5.1 (major) (#19119)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Mac Siri <mac@forem.com>
2023-02-16 17:06:25 -05:00
Mac Siri
83dbca39ff
[CI] Capture Cypress logs on failure (#19114) 2023-02-14 09:53:47 -05:00
Mac Siri
cb3b12feaa
Expand CI nodes (#19073) 2023-02-06 15:15:26 -05:00
Mac Siri
45e292463e
Add proper CodeCov flags (#19044) 2023-02-02 15:41:42 -05:00
Mac Siri
14b28a1a9c
Use upload-artifact in CI (#18980) 2023-01-19 07:30:59 -05:00
Mac Siri
aaf4339b46
Expand CD to include staging (#18966) 2023-01-16 14:20:38 -05:00
Mac Siri
68c7308c59
Add Github CD (2nd attempt) (#18960) 2023-01-13 15:51:08 -05:00
Aramayis
12e37330c7
Integrate Uffizzi (#18792)
Co-authored-by: Aramayis <>
2023-01-09 10:49:39 -05:00
Mac Siri
f13a1ec0c2
Actually get buildpulse to work with rspec and jest (#18859)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-19 14:31:29 -05:00
Mac Siri
db39270539
Integrate BuildPulse (#18740) 2022-11-18 09:54:11 -05:00
Mac Siri
4aa053201c
Fix yarn postcss (#18711)
* Remove postcss-cssnext

* Remove redundant code

* Update postcss-preset-env

* Account for fingerprinting
2022-11-11 08:57:11 -06:00
Mac Siri
a3dbf5d5e3
Fix CI-status-report (#18679)
* Test CI status report

* Fail both regardless

* that wasn't suppose to work

* Test using conclusion

* Test alls-green

* Add back report

* Add or case?

* Remove success()

* Only send message on main
2022-11-04 07:06:22 -04:00
Mac Siri
d98eee3b08
Remove CD workflow (#18671) 2022-11-01 18:57:23 -04:00
Mac Siri
74553f6f88
Specify branch on CD (#18666) 2022-11-01 15:24:19 -04:00
Mac Siri
be7a779f36
Add CD workflow (#18648) 2022-11-01 10:50:48 -04:00
Mac Siri
e9d4f18f1e
Remove cURL header from bundle-audit (#18652) 2022-10-28 09:37:59 -04:00
Mac Siri
c23b269410
Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
Julianna Tetreault
8efdf51c02
Updates the Contributing Guide link in issue.yml (#17773) 2022-05-26 10:05:22 -06:00
Naveen
0a96b7f0ae
chore: Set permissions for GitHub actions (#17535)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-05-03 10:54:51 -06:00
YOSHIDA Katsuhiko
89fcd84f9f
Replace git.io URL (#17501) 2022-04-28 07:34:33 -06:00
dependabot[bot]
b0f1452666
Bump github/codeql-action from 1 to 2 (#17421)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 13:29:57 -06:00
Takuya N
aec2349ea7
Use label bug instead of type: bug (#17159)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-04-07 13:12:03 +01:00
Julianna Tetreault
ced3933932
Updates the github-actions bot feature request link and team tag (#17044) 2022-03-29 08:38:58 -06:00
dependabot[bot]
0db3770959
Bump peter-evans/create-or-update-comment from 1.4.5 to 2 (#16969)
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 1.4.5 to 2.
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases)
- [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v1.4.5...v2)

---
updated-dependencies:
- dependency-name: peter-evans/create-or-update-comment
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 12:26:06 -06:00
dependabot[bot]
01c6445a11
Bump actions/checkout from 2 to 3 (#16739)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 09:51:43 -05:00
Michael Kohl
a8813572c6
Request for Comments: Add Rubocop action (#16295)
* Add Rubocop action

* Update step name
2022-01-25 23:27:46 +07:00
dependabot[bot]
08720a69c4
Bump peter-evans/create-or-update-comment from 1 to 1.4.5 (#13740)
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 1 to 1.4.5.
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases)
- [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v1...v1.4.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 08:57:36 -06:00
Josh Puetz
9fe7be190b
Switch references to Forem master branch to main (#12325) 2021-04-16 11:51:06 -05:00
Christina
1f90c63eac
Update issue.yml text. (#12375)
* Update issue.yml text. 

Updating text to give more time for following up on issues and to let the community know why some feature requests may be closed.

* Update .github/workflows/issue.yml

Removing extremely

Co-authored-by: rhymes <rhymes@hey.com>

Co-authored-by: rhymes <rhymes@hey.com>
2021-01-22 10:02:24 -06:00
rhymes
d24a40944c
Update Dependabot configuration for Bundler, Yarn/NPM and actions (#11877) 2020-12-14 17:31:16 +01:00
Joe Doss
24eb8b3354
Rework the PULL_REQUEST_ID logic, again (#11871)
and move github.event.issue.number to the workflow file....
2020-12-11 16:03:53 -06:00
Joe Doss
20598be83f
Add GITHUB_TOKEN to workflow. (#11866) 2020-12-11 12:17:05 -06:00
Joe Doss
c87951d4f2
Add create_buildkite_pr_build.sh (#11849)
* Remove rebase workflow as it will not work as expected with third party forks.

* Add the create_buildkite_pr_build.sh script.

This script will use the GitHub API to gather information about the PR, the PR
Author and create a Pull Request pipeline build on Buildkite.

You can mock out the things needed to work on this script locally with the
following environment variables exported:

export BUILDKITE_API_ACCESS_TOKEN=notarealtoken
export GITHUB_EVENT_PATH=$(curl --silent 2d0e0bdefc/github_actions_event_context.json)
export GITHUB_REPOSITORY=forem/forem
export GITHUB_TOKEN=notarealtoken

Note: You will need to get your own BUILDKITE_API_ACCESS_TOKEN and GITHUB_TOKEN
tokens.

You can then run the script locally to create builds from a pull request. The
GITHUB_EVENT_PATH JSON data is from https://github.com/forem/forem/pull/1181
which might not build on Buildkite down the road if is is closed. You might need
to pull down that JSON data and find and replace the PR number 11818 with thing
else.

Also this script could be busted out into it's own GitHub Action repo so you can
work on it outside of the Forem repo, but I don't have the mental fortitude to
work on GitHub Actions at this time. It is the most painful CI systems I have used
to date in terms of having an very very poor feedback loop/developer experience.
It desperately needs a REPL or mock shell for you to develop actions in so you don't
have to keep submitting PRs to your main branch to see results.
2020-12-11 09:41:02 -06:00
rhymes
f8a8e0320b
Fix Dependabot GitHub action syntax (#11864) 2020-12-11 15:10:20 +01:00
Joe Doss
e91dffb1a5
Just use the master branch for now. (#11834) 2020-12-09 13:55:25 -06:00