From 6afdbe39cf2560dd958050e2f146c8d933ceb796 Mon Sep 17 00:00:00 2001 From: Ardika Bagus Date: Sat, 2 Sep 2023 18:57:51 +0700 Subject: [PATCH] chore: explore GitHub Actions --- .github/workflows/test.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..a902516 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,35 @@ +name: CI + +on: + workflow_dispatch: + pull_request: + +jobs: + test: + runs-on: stg-local + container: ghcr.io/ardikabs/etc/kubexec:latest + steps: + - run: echo $PWD + - name: Breaking down `github` context + run: | + 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 + + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 1 + - run: sleep 20 + shell: bash + - run: printenv + - run: ls -alh + - run: pwd