-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add typescript and pr check (#9)
* chore: add typescript and pr check * fix: script name in workflow --------- Co-authored-by: psmyrdek <[email protected]>
- Loading branch information
1 parent
a12ce2b
commit 4905784
Showing
7 changed files
with
51 additions
and
7 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,27 @@ | ||
name: Pull Request Workflow | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
create_pull_request: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install deps | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: npm run test:all | ||
|
||
- name: Create test directory | ||
run: npm run create | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
// Tutaj skopiuj testy dla zadania. Uruchom je poleceniem `npm test` | ||
// Tutaj skopiuj testy dla zadania. Uruchom je poleceniem `npm test` | ||
import { exampleFunction } from "." | ||
|
||
test('should return 2', () => { | ||
exampleFunction() | ||
}) |
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 +1,4 @@ | ||
// Tutaj skopiuj kod zadania | ||
// Tutaj skopiuj kod zadania | ||
export function exampleFunction() { | ||
return 2; | ||
} |
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 +1,6 @@ | ||
// Tutaj skopiuj testy dla zadania. Uruchom je poleceniem `npm test` | ||
// Tutaj skopiuj testy dla zadania. Uruchom je poleceniem `npm test` | ||
import { exampleFunction } from "." | ||
|
||
test('should return 2', () => { | ||
exampleFunction() | ||
}) |
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 +1,4 @@ | ||
// Tutaj skopiuj kod zadania | ||
// Tutaj skopiuj kod zadania | ||
export function exampleFunction() { | ||
return 4; | ||
} |