-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from c-tuck/feat/test-gha
ci: test gha
- Loading branch information
Showing
3 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Test Github Actions - PR | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test_github_actions_pr: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
node-version: [16.x] | ||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
always-auth: true | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: https://npm.pkg.github.com | ||
- run: echo ${{ github.ref }} | ||
- run: echo ${{ github.base_ref }} | ||
- run: echo ${{ github.head_ref }} | ||
- run: echo ${GITHUB_REF} | ||
- run: echo ${GITHUB_REF##*/} | ||
- run: echo ${GITHUB_BASE_REF} | ||
- run: echo ${GITHUB_BASE_REF##*/} | ||
- run: echo ${GITHUB_HEAD_REF} | ||
- run: echo ${GITHUB_HEAD_REF##*/} | ||
- run: git branch --show-current | ||
- run: env | ||
- name: Install Deps | ||
run: npm ci --ignore-scripts | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run Program | ||
run: node . |
19 changes: 15 additions & 4 deletions
19
.github/workflows/packages.yml → .github/workflows/push.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Test Github Actions - Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
test_github_actions_release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
node-version: [16.x] | ||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
always-auth: true | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: https://npm.pkg.github.com | ||
- run: echo ${{ github.ref }} | ||
- run: echo ${{ github.base_ref }} | ||
- run: echo ${{ github.head_ref }} | ||
- run: echo ${GITHUB_REF} | ||
- run: echo ${GITHUB_REF##*/} | ||
- run: echo ${GITHUB_BASE_REF} | ||
- run: echo ${GITHUB_BASE_REF##*/} | ||
- run: echo ${GITHUB_HEAD_REF} | ||
- run: echo ${GITHUB_HEAD_REF##*/} | ||
- run: git branch --show-current | ||
- run: env | ||
- name: Install Deps | ||
run: npm ci --ignore-scripts | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run Program | ||
run: node . | ||
|
||
|