Files

61 lines
1.4 KiB
YAML

name: "test"
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
jobs:
all-tests:
name: "Run linting and tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn install
- name: Login and publish
run: yarn run all
mock-release: # Make sure that the action works on a clean machine without building
name: "Build image & mock a release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: './.github/actions/use-local-dockerfile'
- name: Mock creating a Sentry release
uses: ./
env:
MOCK: true
with:
environment: production
mock-release-working-directory:
name: "Build image & mock a release in a different working directory"
runs-on: ubuntu-latest
steps:
- name: Checkout directory we'll be running from
uses: actions/checkout@v3
with:
path: main/
- name: Checkout directory we'll be testing
uses: actions/checkout@v3
with:
path: test/
- uses: './main/.github/actions/use-local-dockerfile'
with:
working_directory: main
- name: Mock creating a Sentry release in a different directory
uses: ./main
env:
MOCK: true
with:
environment: production
working_directory: ./test