π§ wip: test action #3
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 Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# os: [windows-latest, ubuntu-latest, macos-latest] | |
os: [ubuntu-latest] | |
node-version: [18.x] | |
steps: | |
- name: Checkout eemoji package | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install eemoji package | |
run: npm install | |
- name: Switch to test branch | |
run: git checkout -b test | |
- name: Make a commit with a keyword | |
run: git commit --allow-empty -m "test\\u003A eemoji" | |
- name: Check the commit message for emoji | |
run: cat .git/COMMIT_MSG | grep -q "π" |