Commit graph

42 commits

Author SHA1 Message Date
renovate[bot]
bd594b2638
CI(deps): Update ossf/scorecard-action action to v2.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-06 13:47:33 +00:00
932b46b0a9
CI(GitHub Actions): Add ossf-scorecard action
Summary:
Ref [GitHub ossf/scorecard-action](https://github.com/ossf/scorecard-action).

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Land and wait for result.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Tags: #github_actions

Differential Revision: https://issuetracker.revi.xyz/D815
2024-10-23 17:25:18 +09:00
1c5bfa8702
CI(GitHub Actions): --no-git-checks
Summary:
```
ERR_PNPM_GIT_UNKNOWN_BRANCH  The Git HEAD may not attached to any branch, but your "publish-branch" is set to "master|main".
If you want to disable Git checks on publish, set the "git-checks" setting to "false", or run again with "--no-git-checks".
Error: Process completed with exit code 1.
```

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Land and push tag again.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D636
2024-08-01 19:19:36 +09:00
00da98d2b7
CI(GitHub Actions): Use pnpm/action-setup to install pnpm
Summary:
/shrug that I have to install this.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: land and do push again.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D635
2024-08-01 19:16:17 +09:00
9df5a0f602
CI(GitHub Actions): Make publish via pnpm work
Summary:
/shrugs

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: land and push tag again

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D634
2024-08-01 19:08:32 +09:00
8523bec70c
containers: Build copybara too
Summary:
Use submodules to build them.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land` and watch GitHub Actions run.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Tags: #docker, #github_actions

Differential Revision: https://issuetracker.revi.xyz/D526
2024-07-04 19:51:38 +09:00
renovate[bot]
215a7a5beb CI(deps): Update docker/build-push-action action to v6.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-03 23:32:20 +09:00
f78f311269
CI(GitHub Actions): use .node-version
Summary:
Ref D497. Centralize management for node version management.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: land and wait for next npm-pub release.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Tags: #npm

Differential Revision: https://issuetracker.revi.xyz/D502
2024-07-03 20:02:39 +09:00
59f6ff9855
CI: fix (CodeQL|yamllint) rules
Summary:
- run CodeQL on js/ts file edits.
- yamllint rule modified to respect my styling decision (1 space
  before comment).

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc lint`, wait for codeql run next time.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D475
2024-06-30 17:24:15 +09:00
24c3fe7517
CI(GitHub Actions): rename workflow name/exclude tags
Summary:
Don't run php check on npm tag push.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: land it and watch when next tagbis uploaded.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D448
2024-06-30 17:18:07 +09:00
44bf31948f
CI(renovate): init
Summary:
Renovate has automerge, dependabot does not (I have to issue a
command via comment box).

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm run lint:renovate`, and land and wait for renovate to catch up

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D474
2024-06-30 17:09:51 +09:00
dependabot[bot]
532dbe4df0
build(deps): bump docker/build-push-action from 5.4.0 to 6.2.0 (#10) 2024-06-27 13:44:18 +00:00
4e98e27115
CI(typescript): add typescript stuff
Summary:
Add them as `package.json` deps. Also remove `--fund=false` in
GitHub Actions workflows where it's obsoleted by `.npmrc` file.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm ci`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D429
2024-06-25 17:20:02 +09:00
9c85bcb30d
CI(NPM): .npmrc audit=false, fund=false
Summary:
Handled by dependabot.

Ref D375.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: land it, do npm ci or watch GitHub Actions log without audit/fund data.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D384
2024-06-21 16:09:14 +09:00
122113d958
meta: add badges to root dir README
Summary:
Sort of a QuickView.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: preview.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D371
2024-06-19 16:04:31 +09:00
dependabot[bot]
816443f2ef
build(deps): bump docker/build-push-action from 5.3.0 to 5.4.0 (#8) 2024-06-18 15:19:39 +00:00
cbfa3411b3
CI(GitHub Actions): fix npm-pub.yml to publish correctly
Summary:
Fix P185 failure.

Also fix L1 (`npm pkg fix`) for (eslint|prettier)-config.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc lint`, and push tag again

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D358
2024-06-18 19:26:34 +09:00
0b10676c4f
CI(GitHub Actions): Fix syntax if: statement
Summary:
Forgot there's contains() logic.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land`, and make a new tag and push.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D357
2024-06-18 19:19:03 +09:00
351abd6425
CI(GitHub Actions): add npm autopublishing script
Summary:
Handles (eslint|prettier)-config in one script.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land` and push a tag for testing.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D356
2024-06-18 19:08:38 +09:00
5c16c87f8d
npm(prettier-config): add prettier plugins, add rules, consolidate
Summary:
And run `npm run p:w .` for that, and add .prettierignore so `sh` plugin ignores them.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm run p:c .` and `npm publish`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D355
2024-06-18 18:46:30 +09:00
679378baa3
CI(GitHub Actions): add codeql
Summary:
CodeQL just for... CodeQL.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D343
2024-06-17 13:06:55 +09:00
959705258e
npm(eslint-config): correct wrong peerDependency
Summary:
eslint-config-prettier should have been peerDependency not devDependency.
Correct them by moving it.

(Also do some yml cleanups.)

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm ci`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D342
2024-06-17 12:53:55 +09:00
b1740bd0cd
CI(.arclint): use Pinterest Arcanist Linter
Summary:
Thanks pinterest!

Also fix some GitHub Actions error.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: run `arc lint`?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D325
2024-06-16 14:45:56 +09:00
04798b45fd
style: npm run p:w .
Summary:
Which is essentially `npx prettier --write .`

Also fix `jshint` (possible) FP, wrong chars.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm run p:w .` and verify no changes made.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D217
2024-06-09 22:11:33 +09:00
ffae464265
CI(GitHub Actions): change actions versioning
Summary:
commit hash is not my preferred solution, Just use tags.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land`?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D194
2024-06-08 12:06:24 +09:00
609068524b
CI(GitHub Actions): run builds on workflow yml file edit
Summary:
different ci config might render jobs to fail.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Verify test run after `arc land`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D139
2024-05-26 15:03:13 +09:00
50a7eeb582
CI(GitHub Actions): fix php -l script
Summary:
Was not calling from the repo rootdir. Fix it.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land`. Wait for GitHub Actions to run.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D149
2024-05-26 15:03:11 +09:00
dependabot[bot]
b28b636f0a
Merge pull request #3 from revi/dependabot/github_actions/master/docker/metadata-action-f7b4ed12385588c3f9bc252f0a2b520d83b52d48 2024-05-23 14:51:38 +00:00
dependabot[bot]
1d28b2e49b
Merge pull request #2 from revi/dependabot/github_actions/master/docker/build-push-action-2a53c6ccda456d31fb62eedc658aae06e238b7bd 2024-05-23 14:50:36 +00:00
dependabot[bot]
adbe151bf2
build(deps): bump docker/login-action
Bumps [docker/login-action](https://github.com/docker/login-action) from 65b78e6e13532edd9afa3aa52ac7964289d1a9c1 to 70fccc794acd729b2b22dd6a326895f286447728.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](65b78e6e13...70fccc794a)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 07:33:28 +00:00
dependabot[bot]
66e6752fff
build(deps): bump docker/metadata-action
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 to f7b4ed12385588c3f9bc252f0a2b520d83b52d48.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](9ec57ed1fc...f7b4ed1238)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 07:32:12 +00:00
dependabot[bot]
f4ef37df09
build(deps): bump docker/build-push-action
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from f2a1d5e99d037542a71f64918e516c093c6f3fc4 to 2a53c6ccda456d31fb62eedc658aae06e238b7bd.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](f2a1d5e99d...2a53c6ccda)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 07:30:42 +00:00
b77d708548
CI(Github Actions): Remove attestation
Summary:
Not really needed, and causing build to ultimately fail.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Build again.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D136
2024-05-23 16:26:54 +09:00
eeae57a78e
Dependabot: add docker dependencies
Summary:
/shrug

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Wait for Monday for dependabot to trigger.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D135
2024-05-23 16:22:53 +09:00
5f921ddcf8
CI (GitHub Actions): actions/checkout
Summary:
I am stupid enough, yeah

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Watch the GitHub Actions run again

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D134
2024-05-23 16:22:51 +09:00
f2ff297047
CI (GitHub Actions): Fix build error
Summary:
Working space errors.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: merge, watch GitHub Actions runs.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D133
2024-05-23 16:16:34 +09:00
cdf70a8ee2
container: build and publish containers
Summary:
Cheap docker hub alt :P

Dockerfile from [googlechrome/lighthouse-ci](https://github.com/GoogleChrome/lighthouse-ci/tree/main/docs/recipes/docker-server)

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Check GitHub Actions runs?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D132
2024-05-23 16:12:11 +09:00
d45c16bde1
meta: arclint: add few more rules
Summary:
I probably want few more rules (ie. csslint)

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc lint`

Reviewers: #acl_sudoers, #blessed_reviewers, revi

Reviewed By: #acl_sudoers, #blessed_reviewers, revi

Differential Revision: https://issuetracker.revi.xyz/D20
2024-05-04 17:34:01 +09:00
c628542223
Revert "RobotsTxt: specify more verbose classes"
Summary:
This reverts commit 88946a7fe2.

PHP Fatal error:  Cannot override final method PhabricatorRobotsController::processRequest() in /var/www/phorge/phorge/src/extensions/PhabricatorCustomRobotsTxtController.php on line 13

Fatal error: Cannot override final method PhabricatorRobotsController::processRequest() in /var/www/phorge/phorge/src/extensions/PhabricatorCustomRobotsTxtController.php on line 13

Signed-off-by: Yongmin Hong <revi@omglol.email>

Reviewers: #acl_sudoers, #blessed_reviewers, revi

Reviewed By: #acl_sudoers, #blessed_reviewers, revi

Differential Revision: https://issuetracker.revi.xyz/D10
2024-05-02 19:56:13 +09:00
88946a7fe2
RobotsTxt: specify more verbose classes
Summary:
Using PhabricatorRobotsController overwrites robots.txt for blogs, URL shortener, and CDN domains. Using [PhabricatorRobotsPlatformController](https://we.phorge.it/book/dev/class/PhabricatorRobotsPlatformController/) should fix it.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Reload personal-phorge.revicdn.net/robots.txt and it is not verbatim copy of issuetracker.revi.xyz/robots.txt

Reviewers: #acl_sudoers, #blessed_reviewers, revi

Reviewed By: #acl_sudoers, #blessed_reviewers, revi

Differential Revision: https://issuetracker.revi.xyz/D9
2024-05-02 19:48:19 +09:00
383155f51d
actions: php quick syntax check
cf. https://we.phorge.it/book/phorge/article/configuring_preamble/

Bug: N/A
Signed-off-by: Yongmin Hong <revi@omglol.email>
2024-04-20 18:04:53 +09:00
b931e41135
meta: add metadata
Blah blah

Signed-off-by: Yongmin Hong <revi@omglol.email>
2024-04-16 21:17:24 +09:00