diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..d353350 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,30 @@ +name: Checks + +on: + push: + branches-ignore: + - main + +jobs: + ci: + name: Checks + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Install dependencies + run: npm ci + + - name: Lint YAMLs + run: npx messagevisor lint + + - name: Build + run: npx messagevisor build + + - name: Test specs + run: npx messagevisor test diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24 diff --git a/README.md b/README.md index e2bbc12..bae4117 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,6 @@ -# Messagevisor Project Environments +# messagevisor-example-cloudflare-pages This example models `dev`, `staging`, and `production` as independent -Messagevisor sets. +Messagevisor sets, while using Cloudflare Pages to serve the datafiles. -Each set contains the same starter definitions as `projects/project-yml`: - -- locales: `en`, `en-US`, `en-GB` -- attribute: `platform` -- segments: `platform-web`, `platform-mobile` -- targets: `web`, `mobile` -- messages: `auth.signin`, `auth.signout`, `nav.home`, `nav.contact` - -Useful commands: - -```bash -npm run lint -npm run build -npm test -npx messagevisor build --set=staging -npx messagevisor test --set=production -``` +Learn more at [https://messagevisor.com](https://messagevisor.com).