Files
kopia/.github/workflows/htmlui-tests.yml
Julio Lopez 8706239a9f build(infra): checkout repo before setting up Go (#2903)
This way GH caching for Go packages has a chance to work.
See https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs

* build(providers): checkout repo before setting up Go
* build(infra): checkout repo before setting up Go: apply to other workflows as well.
2023-04-07 17:22:05 -04:00

45 lines
1.4 KiB
YAML

name: HTMLUI
on:
pull_request:
branches: [ master ]
push:
# ci-sandbox is a branch dedicated to testing post-submit code.
branches: [ master, artifacts-pr ]
tags:
- v*
env:
# environment variables shared between build steps
# do not include sensitive credentials and tokens here, instead pass them
# directly to tools that need them to limit the blast radius in case one of them
# becomes compromised and leaks credentials to external sites.
# required by Makefile
UNIX_SHELL_ON_WINDOWS: true
# set (to any value other than false) to trigger random unicode filenames testing (logs may be difficult to read)
ENABLE_UNICODE_FILENAMES: ${{ secrets.ENABLE_UNICODE_FILENAMES }}
# disable long filenames since they sometimes get messed up when simulating input keystrokes
ENABLE_LONG_FILENAMES: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
end-to-end-test:
name: E2E Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
id: go
- name: Run Tests
run: make htmlui-e2e-test
- name: Upload Screenshots
uses: actions/upload-artifact@v3
with:
path: .screenshots/**/*.png
if-no-files-found: ignore
if: ${{ always() }}