Commit Graph

59 Commits

Author SHA1 Message Date
classabbyamp 1624cbb9a8
.github/workflows/{build.yaml,cycles.yml}: update masterdir image 2023-01-11 09:53:12 -05:00
classabbyamp 4410de52c1 .github/workflows: use checkout script instead of action
uses treeless fetches instead of `--depth`. This is not supported by
`actions/checkout`, so it was implemented as a short script (staying
with `actions/checkout@v1` does not seem like a good idea because of
its age, and updating to `actions/checkout@v3` would require adding
`libstdc++` to any CI workflows that run in void containers because
of node's requirements)

see also: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/

this can't be implemented as a script in `common/travis/` because the
repo doesn't exist on the runner (yet!)

also fix indentation in cycle check
2022-12-21 01:15:15 -05:00
classabbyamp 302febbf6b .github/workflows/stale.yml: ignore tracking issues 2022-11-05 00:37:44 -04:00
classabbyamp e0c8a977c4 .github/workflows/build.yaml: add /usr/libexec/chroot-git to PATH 2022-10-25 14:23:46 -04:00
0x5c 97a1aaaa0d .github/workflows/stale.yml: update to v6
This fixes a bug where a stale issue/PR that gets updated without a comment
remains stale indefinitely and never gets closed (actions/stale#715).

The only "breaking" change in that upadate is that the default close reason has
changed to "not planned". That seems like a more desirable default anyways.
2022-09-30 02:09:51 -05:00
Đoàn Trần Công Danh 7510b96218 common: simplify logic to find git
From chroot-git 2.33.1, we always have an executable named git
for other build infrastructure and lints.

Let's remove the shenanegan to find which git to be used, prepend the
path to chroot-git's git into $PATH, and let's the shell call the
correct git for us instead.
2022-09-17 23:32:50 +07:00
Martin Dimov 4f2b781049 .github/workflows/stale.yml: fix format of exempt-issue-labels 2022-08-06 08:49:27 -04:00
Duncaen 92031434c9
.github/workflows: switch to repo-ci.voidlinux.org 2022-08-05 23:06:25 +02:00
Piotr Wójcik dc62938c67 .github/workflows/stale.yml: do not close issues labelled as bug 2022-08-02 19:44:49 +02:00
classabbyamp 1d9bfae23f .github/workflows/: set token permissions 2022-07-02 19:46:15 -05:00
classabbyamp ada037c9c1 .github/workflows/cycles.yml: update masterdir 2022-05-28 18:29:12 -03:00
Michael Aldridge 8fe764cd87 .github/workflows: Update masterdirs 2022-05-27 18:20:42 -05:00
classabbyamp 290d86ca28 .github/workflows/build.yaml: auto-cancel in-progress workflows 2022-05-17 11:52:50 -05:00
classabbyamp 0763ffbad8 .github/workflows/build.yaml: switch to ubuntu-latest 2022-05-17 11:52:50 -05:00
Piotr Wójcik 2381637340 .github/: skip file conflicts check if no packages are built
workflow was limited to branches modifying srcpkgs/, but this
still triggered when modifying only update files or removing template
2022-05-10 19:56:24 +02:00
classabbyamp 1c953b4173 common/travis/xpkgdiff.sh: add CI script to compare pkgs with xpkgdiff 2022-05-07 22:42:44 +02:00
Piotr Wójcik e900c63cf9 .github: check file conflicts in x86_64 build job 2022-05-05 21:29:41 +02:00
classabbyamp cd824936ce .github/workflows/cycles.yml: fix git command detection 2022-04-26 21:33:20 +02:00
classabbyamp 24378c52ea .github/workflows/cycle.yml: fix error message related to git 2.35.2+ 2022-04-26 19:56:22 +02:00
Duncaen b9ceee011e .github/workflows/stale.yml: don't tag issues with request label as stale
Closes: #36609 [via git-merge-pr]
2022-04-14 20:51:23 -05:00
classabbyamp c16bf1e4fe .github/workflows/stale.yml: increase operations limit
By setting `ascending` to `true`, the most stale issues and PRs will be
caught first. By increasing the operations limit from the default (30)
to 250, more stale issues/PRs will be caught each run, increasing the
speed of the burndown.
2022-04-14 19:49:46 -05:00
classabbyamp 7ce971f655 .github/workflows/build.yaml: only run on changes in srcpkgs/ 2022-04-14 13:41:22 -05:00
Michael Aldridge d6fc5518d5 .github/workflows: Enable actions/stale 2022-04-09 10:03:00 -05:00
Michael Aldridge 58c693ad0d .github/workflows: clean up cycle check 2022-04-01 23:58:48 -05:00
Michael Aldridge a2c813b113 .github/workflows: make stale comments workflow dispatchable 2022-03-29 21:49:29 -05:00
Michael Aldridge f841eea1cf .github/workflows: Add a workflow for dealing with stale issues/prs 2022-03-29 21:05:28 -05:00
Đoàn Trần Công Danh b4c6ac31f4 GitHub Action: build on push to branches designated for CI 2022-03-27 18:38:25 -05:00
Đoàn Trần Công Danh d74a3950fa github/workflow: don't install git 2021-10-27 07:37:34 +07:00
Piotr Wójcik 4fc5144f8e .github/workflows: open issue when cycle is detected 2021-06-30 21:09:10 +02:00
Piotr Wójcik 399a844150 .github/workflows: prepare container for xbps-cycles 2021-06-30 21:09:10 +02:00
Érico Nogueira 4eb9566121 .github/workflows: run xbps-cycles daily.
Should help in catching cyclic dependencies early.

Rename lockthreads.yml to include all scheduled CI tasks.
2021-06-30 21:09:10 +02:00
Đoàn Trần Công Danh 46e6063606 CI: make lint-commits part of xlint.sh
* CI will stop whenever a step is failing.
* We always want to enforce commit message lint
* `xlint` is reporting some false positive for license with " WITH "

Let's make the lint-commits part of xlint.sh
2021-05-31 17:47:56 +07:00
Piotr Wójcik d06bb7e98f workflows: fetch xbps for lint step 2021-05-27 21:18:38 +02:00
Đoàn Trần Công Danh 1f07584a66 common: add basic commit lint
Warn if:
* subject is longer than 50 characters

Error if:
* any lines are longer than 80 characters except it's footnotes
* second line is not blank
2021-05-21 15:56:44 +07:00
Érico Nogueira 5ff646870d .github/workflows: only lock PRs, not issues. 2021-03-25 22:33:04 -03:00
Érico Rolim e03147ee62 .github/workflows: add CI run to lock closed threads.
Closed PRs will be locked after 90 days of inactivity, to avoid comments
on old inactive threads and encourage people to create new ones, which
will receive the proper attention.

Inspired by hook from fish-shell:
a36dbad3b8/.github/workflows/lockthreads.yml
2021-03-24 00:13:25 -03:00
Michael Aldridge 770367e193 .github/workflows: Pull masterdirs from ghcr 2021-03-15 16:04:13 -07:00
Érico Rolim 9d64f0940e .github/workflows: shorten step list.
This makes CI results more concise.
2021-01-03 18:55:15 -03:00
Érico Rolim b6e7863cbd .github/workflows: add script to check that packages can still be
installed.

This will allow us to confirm the repository's staging state in CI.
2020-12-23 16:14:53 -03:00
Michael Aldridge 9b61bf5df5 .github/workflows: Remove old notifications 2020-12-20 22:11:54 -08:00
Érico Rolim d946fe791d .github/workflows: run tests on CI for native builds.
Also:
- fix "list contents" step by adding a fetch-xtools step.
- remove git from masterdir to not interfere with builds (thanks @sgn)
2020-12-14 00:18:04 -03:00
Đoàn Trần Công Danh 7dd89d0df3 GitHub Action: install xtools for "show files" step 2020-12-14 08:17:44 +07:00
Tim Sandquist b9da5abd55 Update source for GitHub Actions 2020-12-07 19:46:12 +01:00
Érico Rolim 55f0c47176 .github/workflows/build: don't skip CI when PR is a draft.
When a PR is marked as ready for review (no longer a draft), CI isn't
re-run automatically, so no tests are run until the PR is updated. Even
trying to manually re-run the jobs doesn't fix this, since GH appears to
remember the PR state instead of using the current one.
2020-11-22 21:56:19 -03:00
Érico Rolim d97410a07a .github/workflows: add build.yaml.
This commit enables CI on GitHub Actions.

Taken from nilium's repository:

e9bf829752/.github/workflows/build.yaml

Plus a few changes:

- only run CI on PRs
- don't run CI on draft PRs or when a PR title or body contains "[ci skip]"
- remove some names
- use more recent void containers
- fix XBPS self update
2020-11-13 19:33:25 -03:00
Duncaen f3504e5986
.github: disable notice mode for issue/pr/push notifications 2020-08-26 10:54:56 +02:00
Enno Boland f5587cae21
.github/workflows: make IRC notify steps non-fatal 2020-01-27 22:16:13 +01:00
Enno Boland 31d28c0a2e .github/workflows: Shorten the URLs from github 2019-12-20 13:44:48 +01:00
Enno Boland 87319512a6
.github/workflows: use a dedicated workflow for each event 2019-12-19 23:01:07 +01:00
Enno Boland 4fa9af7561 .github/workflows: Use Gottox/irc-message-action to avoid the docker overhead 2019-12-19 17:53:27 +01:00