ci: add e2e #107
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: E2E | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
e2e-default: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set labels | |
run: ./src/labels/set.sh | |
env: | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_ISSUE_NUMBER: ${{ github.event.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LABELS: "component/auth,component/docs" | |
- name: Test Run | |
id: test-run | |
uses: ./ | |
with: | |
placeholder: "test_placeholder" | |
- name: Get labels | |
id: get-labels | |
run: ./src/labels/get.sh | |
env: | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_ISSUE_NUMBER: ${{ github.event.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Assert placeholder | |
uses: nick-fields/assert-action@v2 | |
with: | |
actual: ${{ steps.get-labels.outputs.labels }} | |
expected: "component/auth,component/docs" | |
- name: Delete all labels | |
run: ./src/labels/delete_all.sh | |
env: | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_ISSUE_NUMBER: ${{ github.event.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |