Skip to content

chore: explore GitHub Actions #12

chore: explore GitHub Actions

chore: explore GitHub Actions #12

Workflow file for this run

name: CI
on:
pull_request:
jobs:
unit-test:
runs-on: stg-local
steps:
- run: echo $PWD
- name: Breaking down `github` context
run: |
id
echo actor=${{ github.actor }}
echo action_ref=${{ github.action_ref }}
echo ref=${{ github.ref }}
echo ref_name=${{ github.ref_name }}
echo event_name=${{ github.event_name }}
echo event_path=${{ github.event_path }}
echo job=${{ github.job }}
echo PR=${{ github.event.pull_request.number }}
echo PR_root=${{ github.event.number }}
ls -alh /usr/local/bin
sudo apt update -y
sudo apt install git -y
- name: Checkout code
uses: actions/checkout@v3
- run: git rev-parse HEAD
- run: git log -1 --stat HEAD
- run: printenv
- run: ls -alh
- run: pwd
- run: sleep 10
shell: bash
integration-test:
runs-on: stg-local
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: printenv
- run: ls -alh
- run: pwd
- run: sleep 10
shell: bash