Skip to content

WPT data consumption workflow #19

WPT data consumption workflow

WPT data consumption workflow #19

Workflow file for this run

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 'build'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Run precommit target for CI
uses: devcontainers/[email protected]
with:
runCmd: make precommit
playwright:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Install skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \
sudo install skaffold /usr/local/bin/
echo "Skaffold Version: $(skaffold version)"
- name: Start minikube
uses: medyagh/setup-minikube@4f680380adb365368edacbb09d9ac531070c53e6
with:
start-args: '--profile webstatus-dev'
- uses: actions/setup-go@v5
with:
go-version: '1.22.0' # matches the version in .devcontainer/devcontainer.json
- uses: actions/setup-node@v4
with:
node-version: 20 # matches the version in .devcontainer/devcontainer.json
- name: Run post_create.sh to finish setting up.
run: MINIKUBE_PROFILE=webstatus-dev ./.devcontainer/post_create.sh
- name: Run playwright tests
run: CI=true MINIKUBE_PROFILE=webstatus-dev make playwright-test