feat(gallery): Improved gallery modal captions - OEL-2129 #2883
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: CI | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- master | |
- development | |
jobs: | |
semantic: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: amannn/action-semantic-pull-request@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
audit: | |
name: audit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: ./scripts/audit.sh | |
size: | |
name: size | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Size limit | |
run: yarn size | |
tests: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build themes | |
run: yarn build:themes | |
- name: Tests | |
run: yarn test | |
deploy-preview: | |
name: deploy full preview | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Package application | |
run: yarn dist | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
alias: preview-${{ github.event.number }} | |
publish-dir: "build" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
deploy-development-branch: | |
name: deploy preview for the development branch | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/development' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Package application | |
run: yarn dist | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
alias: dev | |
publish-dir: "build" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
deploy-master: | |
name: deploy master branch | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Package application | |
run: yarn dist | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
production-deploy: true | |
publish-dir: "build" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |