-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd68da5
commit 6aae960
Showing
3 changed files
with
65 additions
and
4 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
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,62 @@ | ||
name: Release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- fix-release-workflow | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
################################################### | ||
# | ||
# Prepare | ||
# | ||
################################################### | ||
|
||
- name: (PREPARE) Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: (PREPARE) Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: (PREPARE) Install Node Modules | ||
run: yarn --frozen-lockfile | ||
|
||
- name: (PREPARE) Setup SocketCAN | ||
run: | | ||
sudo apt-get install -y can-utils libnode-dev linux-modules-extra-$(uname -r) | ||
sudo modprobe can | ||
sudo modprobe can_raw | ||
sudo modprobe vcan | ||
################################################### | ||
# | ||
# Test | ||
# | ||
################################################### | ||
- name: (TEST) Check Dependencies | ||
run: yarn dependencies:check | ||
|
||
- name: (TEST) Check ESLint | ||
run: yarn lint:check | ||
|
||
- name: (TEST) Check Prettier | ||
run: yarn style:check | ||
|
||
- name: (TEST) Run Tests | ||
run: sudo yarn test | ||
|
||
- name: (TEST) Upload Tests to Codacy | ||
uses: codacy/codacy-coverage-reporter-action@v1 | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: coverage/lcov.info |
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
name: Tests | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- fix-workflow-tests | ||
pull_request: | ||
branches: | ||
- main | ||
|