-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate test pipelines to gh (#339)
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
- Loading branch information
1 parent
ac97372
commit 9f15b93
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |