Skip to content

build: test action

build: test action #33

Workflow file for this run

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
permissions: write-all
jobs:
aquire-token:
runs-on: ubuntu-latest
steps:
- name: 'Login to Azure'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- name: 'Obtain token for upload'
shell: bash
run: echo "FUSION_TOKEN=$(az account get-access-token --resource '${{ secrets.AZURE_RESOURCE_ID }}' | jq '.accessToken')" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to fetch range
- name: Install Dependencies
run: npx pnpm i
# Run the action on the yarn-workspaces example
- name: Test Action
id: changedAction
uses: ./
with:
turbo-command: idk --since origin/main -- --token ${{ env.FUSION_TOKEN }}