* fix(action): Ensure working directory always starts out at repo root * Add changelog entry
104 lines
2.6 KiB
YAML
104 lines
2.6 KiB
YAML
name: Integration Tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**.md"
|
|
push:
|
|
branches:
|
|
- master
|
|
- release/**
|
|
paths-ignore:
|
|
- "**.md"
|
|
|
|
env:
|
|
# Variables defined in the repository
|
|
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
|
|
# For master, we have an environment variable that selects the action-release project
|
|
# instead of action-release-prs
|
|
# For other branches: https://sentry-ecosystem.sentry.io/releases/?project=4505075304693760
|
|
# For master branch: https://sentry-ecosystem.sentry.io/releases/?project=6576594
|
|
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install
|
|
run: yarn install
|
|
|
|
- name: Check format
|
|
run: yarn format-check
|
|
|
|
- name: Lint
|
|
run: yarn lint
|
|
|
|
- name: Build
|
|
run: yarn build
|
|
|
|
# You're welcome to make changes on this job as part of your PR in order to test out your changes
|
|
# We can always undo the changes once we're satisfied with the results
|
|
#
|
|
# Secrets on this repo do not get shared with PRs opened on a fork, thus,
|
|
# add SENTRY_AUTH_TOKEN as a secret to your fork if you want to use this job.
|
|
create-staging-release-per-push:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
name: Test current action
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Create a staging release
|
|
uses: ./
|
|
env:
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
SENTRY_LOG_LEVEL: debug
|
|
with:
|
|
ignore_missing: true
|
|
|
|
mock-release:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
name: Mock a release
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Mock creating a Sentry release
|
|
uses: ./
|
|
env:
|
|
MOCK: true
|
|
with:
|
|
environment: production
|
|
|
|
mock-release-working-directory:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
name: Mock a release in a different working directory
|
|
steps:
|
|
- name: Checkout directory we'll be running from
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: main/
|
|
|
|
- name: Checkout directory we'll be testing
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: test/
|
|
|
|
- name: Mock creating a Sentry release in a different directory
|
|
uses: ./main
|
|
env:
|
|
MOCK: true
|
|
with:
|
|
environment: production
|
|
working_directory: ./test
|