From 0e72fb6fc5273fdd319b20aa8f7d4a8161b0e0e1 Mon Sep 17 00:00:00 2001 From: ahmd369 <62623949+ahmd369@users.noreply.github.com> Date: Wed, 25 Mar 2020 00:49:53 +0300 Subject: [PATCH 1/2] Create main.ymlahmd --- .../main.ymlahmd" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ".github/ \330\263\331\212\330\261 \330\247\331\204\330\271\331\205\331\204/main.ymlahmd" diff --git "a/.github/ \330\263\331\212\330\261 \330\247\331\204\330\271\331\205\331\204/main.ymlahmd" "b/.github/ \330\263\331\212\330\261 \330\247\331\204\330\271\331\205\331\204/main.ymlahmd" new file mode 100644 index 0000000..d6783e2 --- /dev/null +++ "b/.github/ \330\263\331\212\330\261 \330\247\331\204\330\271\331\205\331\204/main.ymlahmd" @@ -0,0 +1,33 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From a476b1e124c6054591ab5d808c4334c548fcb16c Mon Sep 17 00:00:00 2001 From: ahmd369 <62623949+ahmd369@users.noreply.github.com> Date: Wed, 25 Mar 2020 01:26:02 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=20=D8=AD=D9=84=20=D8=A7=D9=84=D9=86=D8=B2?= =?UTF-8?q?=D8=B9=D8=A7=D8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit نبع السلام --- nodejs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 nodejs.yml diff --git a/nodejs.yml b/nodejs.yml new file mode 100644 index 0000000..4390e93 --- /dev/null +++ b/nodejs.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true