docs: update GUIDELINES.md #59
Workflow file for this run
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
name: Pull Request | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
node: | |
- 20 | |
runs-on: ${{ matrix.os }} | |
name: Build on ${{ matrix.os }} with Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: Build | |
run: | | |
pnpm build | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
name: Test on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub SSH | |
uses: ./ | |
with: | |
host: github.com | |
private-key: ${{ secrets.SSH_PRIVATE_KEY_GITHUB }} | |
- name: Clone GitHub repository | |
run: | | |
git clone [email protected]:MrSquaare/private-repository.git | |
- name: Setup GitLab SSH | |
uses: ./ | |
id: setup | |
with: | |
host: gitlab.com | |
private-key: ${{ secrets.SSH_PRIVATE_KEY_GITLAB }} | |
private-key-name: gitlab | |
- name: Clone GitLab repository | |
run: | | |
rm -rf private-repository | |
git clone [email protected]:MrSquaare/private-repository.git | |
- name: Run tests | |
env: | |
OUTPUT_SSH_PATH: ${{ steps.setup.outputs.ssh-path }} | |
OUTPUT_SSH_AGENT_PID: ${{ steps.setup.outputs.ssh-agent-pid }} | |
OUTPUT_SSH_AUTH_SOCK: ${{ steps.setup.outputs.ssh-auth-sock }} | |
run: | |
sh ./test/test.sh |