Skip to content

chore: update node version and improve overall CI #6

chore: update node version and improve overall CI

chore: update node version and improve overall CI #6

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Check Format
id: npm-format-check
run: npm run format:check
- name: Lint
id: npm-lint
run: npm run lint
test-action:
name: OCI CLI GitHub Action Test
runs-on: ubuntu-latest
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
OCI_CLI_REGION: ${{ secrets.OCI_CLI_REGION }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Get OCI region key
id: test-action-get-oci-region-key
uses: ./
with:
command: iam region list
query: "data[?name=='${{ secrets.OCI_CLI_REGION }}'].key"
- name: Output OCI region key
id: output-oci-region-key
run: echo "${{ steps.test-action-get-oci-region-key.outputs.output }}"