adds the test workflow
هذا الالتزام موجود في:
6
.github/workflows/main.yml
مباع
6
.github/workflows/main.yml
مباع
@@ -7,13 +7,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
example-job:
|
example-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: print a welcome message
|
- name: print a welcome message
|
||||||
run: echo "welcome to our first github actions workflow"
|
run: echo "welcome to our first github actions workflow"
|
||||||
|
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
uses: actions/checkout@v5.0.0
|
uses: actions/checkout@v5.0.0
|
||||||
|
|
||||||
- name: List repository files
|
- name: List repository files
|
||||||
run: ls -la
|
run: ls -la
|
||||||
|
18
.github/workflows/push-pr.yml
مباع
Normal file
18
.github/workflows/push-pr.yml
مباع
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- "release/**"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- "release/**"
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v5.0.0
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
المرجع في مشكلة جديدة
حظر مستخدم