-
Notifications
You must be signed in to change notification settings - Fork 37
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
feat: migrate test pipelines to gh #339
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target-folder: drop-linux | ||
- os: windows-latest | ||
target-folder: drop | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "20" | ||
|
||
- name: npm ci | ||
run: npm ci | ||
|
||
- name: lint | ||
run: npm run lint | ||
|
||
- name: prettier | ||
run: npm run prettier | ||
|
||
- name: test | ||
run: npm test | ||
|
||
- name: pack | ||
run: npm pack | ||
|
||
- name: Copy Files to target-folder | ||
run: mkdir -p ${{ matrix.target-folder }} && cp *.tgz ${{ matrix.target-folder }} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.target-folder }} | ||
path: ${{ matrix.target-folder }} | ||
Comment on lines
+38
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the benefit of doing I think they may have made sense in the context of uploading tests results to Azure DevOps pipeline and/or publishing the package, but if we make this GH action go up to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it does! Example here in a repo I also maintain: https://github.com/gitify-app/gitify/actions/runs/9626236252 You can see all of the artifacts of a given workflow, which is something that I'd say would be nice to keep! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
@v2
ofactions/upload-artifact
is deprecated since 6/30/2024, i.e. yesterday:https://github.com/actions/upload-artifact#actionsupload-artifact
I can fix it in a future PR.