Bump the minor-and-patch group with 6 updates #187
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
npm i -g corepack@latest | |
corepack enable pnpm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- run: pnpm i | |
- run: pnpm typecheck | |
- run: pnpm lint | |
- run: pnpm test -- --coverage | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
npm i -g corepack@latest | |
corepack enable pnpm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- run: | | |
ATPROTO_COMMIT=$(cat ./scripts/postinstall.sh | grep ATPROTO_COMMIT= | awk -F'=' '{print $2}') | |
echo "ATPROTO_COMMIT=$ATPROTO_COMMIT" >> $GITHUB_ENV | |
NODE_VERSION=$(node -v) | |
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
with: | |
path: atproto | |
key: atproto-${{ env.ATPROTO_COMMIT }}-node-${{ env.NODE_VERSION }} | |
- run: pnpm i | |
- run: pnpm playwright install --with-deps | |
- run: cp .env.example .env | |
- run: pnpm setup-dev | |
- run: pnpm build | |
- run: pnpm e2e | |
# https://www.cloudflarestatus.com/incidents/t5nrjmpxc1cj | |
- uses: unfor19/install-aws-cli-action@v1 | |
if: always() && (github.ref == 'refs/heads/main' || github.actor == 'mkizka') | |
with: | |
version: 2.22.35 | |
- name: Upload Report | |
if: always() && (github.ref == 'refs/heads/main' || github.actor == 'mkizka') | |
run: | | |
E2E_S3_PATH="playwright-report/${{ github.ref == 'refs/heads/main' && 'main' || github.sha }}" | |
aws s3 cp playwright-report "s3://$E2E_S3_PATH" --recursive | |
echo "Report: https://${{ vars.S3_BASE_URL }}/$E2E_S3_PATH/index.html" | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_ENDPOINT_URL: ${{ secrets.AWS_ENDPOINT_URL }} | |
AWS_DEFAULT_REGION: auto |