Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pull request CI base commit #253

Merged
merged 3 commits into from
Feb 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 11 additions & 36 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: CI

on:
pull_request_target:
branches: [main]
pull_request:
branches:
- main

jobs:
build-test:
build-check:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down Expand Up @@ -48,36 +49,6 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
continue-on-error: true

plugin-installation-test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Cache prep
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache yarn
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install

- name: Build plugin
run: yarn pack

- name: Install plugin
run: |
npm install -g sfdx-cli
Expand All @@ -88,14 +59,18 @@ jobs:

commit-lint:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Lint commits
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4

pr-lint:
- name: Lint commits
uses: wagoid/commitlint-github-action@v4
continue-on-error: true

pull-request-lint:
runs-on: ubuntu-latest
steps:
- name: Lint PR
Expand Down