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

ci: modernize github actions #1287

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

mcmxcdev
Copy link
Contributor

@mcmxcdev mcmxcdev commented Jul 26, 2023

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

  • use ubuntu-22.04 runner instead of ubuntu-20.04
  • use windows-2022 runner instead of windows-2019
  • use pnpm/action-setup instead of handling pnpm install manually
  • use pnpm-lock.yaml as caching key for actions/cache instead of inexistent package-lock.json
  • define packageManager config option in package.json which is read by pnpm/action-setup

Motivation and Context

Switch to the latest GitHub-hosted runners based on: https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners

Screenshots

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

@mcmxcdev
Copy link
Contributor Author

I am not familiar with the location of pnpm.cjs file on Windows, so would need help with debugging the Windows job: https://github.com/ferdium/ferdium-app/actions/runs/5668907441/job/15360556275?pr=1287

@mcmxcdev mcmxcdev marked this pull request as ready for review July 26, 2023 13:04
@mcmxcdev mcmxcdev requested a review from a team as a code owner July 26, 2023 13:04
- use `ubuntu-22.04` runner instead of `ubuntu-20.04`
- use `windows-2022` runner instead of `windows-2019`
- use `pnpm/action-setup` instead of handling `pnpm install` manually
- use pnpm-lock.yaml as caching key for actions/cache instead of inexistent package-lock.json
- define `packageManager` config option in `package.json` which is read by `pnpm/action-setup`
@vraravam vraravam force-pushed the ci/modernize-github-actions branch from 6c476d0 to 90b7c5f Compare July 26, 2023 16:31
.github/workflows/builds.yml Show resolved Hide resolved
.github/workflows/builds.yml Show resolved Hide resolved
.github/workflows/builds.yml Show resolved Hide resolved
.github/workflows/builds.yml Show resolved Hide resolved
.github/workflows/builds.yml Show resolved Hide resolved
@vraravam vraravam merged commit 11c319e into ferdium:develop Jul 26, 2023
@mcmxcdev
Copy link
Contributor Author

Cool, thanks for finishing this one up Vijay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants