diff --git a/.github/workflows/deployment1.yaml b/.github/workflows/deployment1.yaml new file mode 100644 index 00000000..441b53cc --- /dev/null +++ b/.github/workflows/deployment1.yaml @@ -0,0 +1,50 @@ +name: Deployment Exercise 1 +on: workflow_dispatch + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Get code + uses: actions/checkout@v3 + - name: Install dependencies + run: | + cd Code/02\ Basics/04\ Practice\ Project\ \(Start\)/ + npm ci + - name: Lint + run: | + cd Code/02\ Basics/04\ Practice\ Project\ \(Start\)/ + npm run lint + test: + needs: lint + runs-on: ubuntu-latest + steps: + - name: Get code + uses: actions/checkout@v3 + - name: Install dependencies + run: | + cd Code/02\ Basics/04\ Practice\ Project\ \(Start\)/ + npm ci + - name: Test code + run: | + cd Code/02\ Basics/04\ Practice\ Project\ \(Start\)/ + npm run test + - name: Deploy code + run: echo "Deploying..." + + deploy: + needs: test + runs-on: ubuntu-latest + steps: + - name: Get code + uses: actions/checkout@v3 + - name: Install dependencies + run: | + cd Code/02\ Basics/04\ Practice\ Project\ \(Start\)/ + npm ci + - name: Build code + run: | + cd Code/02\ Basics/04\ Practice\ Project\ \(Start\)/ + npm run build + - name: Deploy code + run: echo "Deploying..." diff --git a/.github/workflows/deployment2.yaml b/.github/workflows/deployment2.yaml new file mode 100644 index 00000000..3219e739 --- /dev/null +++ b/.github/workflows/deployment2.yaml @@ -0,0 +1,8 @@ +name: Handle issues +on: workflow_dispatch +jobs: + output-info: + runs-on: ubuntu-latest + steps: + - name: Output event details + run: echo '${{ toJSON(github.event) }})' diff --git a/.github/workflows/first-action.yml b/.github/workflows/first-action.yml new file mode 100644 index 00000000..def0482b --- /dev/null +++ b/.github/workflows/first-action.yml @@ -0,0 +1,11 @@ +name: First Workflow +on: workflow_dispatch + +jobs: + first_job: + runs-on: ubuntu-latest + steps: + - name: Print Greeting + run: | + echo "Hare Krishna" + echo "Haribol" diff --git a/.github/workflows/output.yaml b/.github/workflows/output.yaml new file mode 100644 index 00000000..958092bb --- /dev/null +++ b/.github/workflows/output.yaml @@ -0,0 +1,8 @@ +name: Output information +on: workflow_dispatch +jobs: + info: + runs-on: ubuntu-latest + steps: + - name: Output GitHub context + run: echo '${{ toJSON(github) }})' diff --git a/hss/hss b/hss/hss new file mode 100644 index 00000000..4a600bcf --- /dev/null +++ b/hss/hss @@ -0,0 +1,2 @@ +This is the first line of the file +This is the second line of the file \ No newline at end of file