Skip to content

Merge pull request #144 from amtrack/fix/sf-plugin-style #735

Merge pull request #144 from amtrack/fix/sf-plugin-style

Merge pull request #144 from amtrack/fix/sf-plugin-style #735

Workflow file for this run

name: Test and Release
on:
push:
branches:
- main
- beta
pull_request:
branches:
- main
- beta
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: |
yarn install
yarn global add @salesforce/cli
- name: Run unit tests
run: yarn test
- name: Authenticate DevHub and create scratch org
env:
SFDX_AUTH_URL_DEVHUB: ${{ secrets.SFDX_AUTH_URL_DEVHUB }}
run: |
sf org login sfdx-url -d -a devhub -f /dev/stdin <<< "${SFDX_AUTH_URL_DEVHUB}"
yarn develop
- name: Run end-to-end tests
run: yarn test:e2e
- name: Delete scratch org
if: always()
run: |
sf org delete scratch -p
- name: Release package
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}