diff --git a/.github/actions/setup-chrome/action.yaml b/.github/actions/setup-chrome/action.yaml new file mode 100644 index 0000000000..32d62851bb --- /dev/null +++ b/.github/actions/setup-chrome/action.yaml @@ -0,0 +1,15 @@ +name: Setup Chrome +description: Setup Chrome + +runs: + using: 'composite' + steps: + - name: Install chrome + shell: bash + run: | + zypper addrepo http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome + wget https://dl.google.com/linux/linux_signing_key.pub + rpm --import linux_signing_key.pub + zypper -n refresh + zypper install --no-confirm google-chrome-stable + google-chrome --version diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index 4f37e68506..f625877ef2 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -7,9 +7,9 @@ runs: - name: Setup Node uses: ./.github/actions/setup-node - # - uses: actions/setup-python@v5 - # with: - # python-version: '3.12' + # We don't need to install python (for node-sass) as the base image contains it + # Note - we're on bci, so no apt-get, though there is zypper... + # Note - we're on bci, is not supported by actions/setup-python - name: Install packages shell: bash diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8d19995580..cfb331c013 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,9 +20,12 @@ jobs: with: fetch-depth: 1 - - name: Setup Node + - name: Setup uses: ./.github/actions/setup + - name: Setup Chrome + uses: ./.github/actions/setup-chrome + - name: Run tests run: yarn test lint: @@ -33,7 +36,7 @@ jobs: with: fetch-depth: 1 - - name: Setup Node + - name: Setup uses: ./.github/actions/setup - name: Run linter