Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Add CI check

Add CI check #3

Workflow file for this run

# Copyright Jiaqi Liu
#
# 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: CI/CD
"on":
pull_request:
push:
branches:
- master
jobs:
validate:
name: Validating Template
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
template: [sd-template-basic.yaml, sd-template-ssl.yaml, sd-template-jpa.yaml]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Validate ${{ matrix.template }}
uses: satackey/action-js-inline@v0.0.2
with:
required-packages: screwdriver-data-schema
script: |
require("screwdriver-data-schema").config.template.template
.validateAsync(fs.readFileSync("${{ matrix.template }}")).then((templateData) => {
console.log(templateData);
});