From 7a2eac741096608953e0836fe5bcb9f94232259b Mon Sep 17 00:00:00 2001 From: Corey Peterson Date: Tue, 19 Sep 2023 16:16:11 -0400 Subject: [PATCH] Replaced travis configs with github workflows. Tweaked info focus style. --- .github/workflows/release-build.yml | 38 +++++++++++++++++++++++++++++ .github/workflows/test.yml | 24 ++++++++++++++++++ .travis.yml | 30 ----------------------- src/player.scss | 8 +++--- yarn.lock | 4 +-- 5 files changed, 69 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/release-build.yml create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..be85387 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,38 @@ +name: Widget Release Build +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+' +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Test and build with node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Setup GIT user + uses: fregante/setup-git-user@v1 + + - run: yarn install --frozen-lockfile + - run: yarn build + + - name: Upload Release .wigt + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/_output/* + tag: ${{ github.ref }} + overwrite: false + file_glob: true \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4c3cecc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Run Tests +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.13.1] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup GIT user + uses: fregante/setup-git-user@v1 + + - name: Run tests with Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install -g yarn + - run: yarn install + # - run: yarn test-ci + - run: yarn build \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f8c1e47..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: node_js -node_js: - - '6' -cache: - yarn: true - directories: - - node_modules -before_install: - - npm config set spin false - - npm install -g npm@^5 -script: - - yarn test-ci - - yarn build -deploy: - skip_cleanup: true - provider: releases - api_key: - secure: "lMKBog2cdgy93iU0J1hYh6k28sOouDReQdQebNf9qqfoYkNyZeSj12LPhdFuAOSpQ69+UYyN+XqL4v6HeixGQQPKOlhw47xk5iv087hEunGPkzHwYp+T3o1AczBFHO8DVzR5f/ltXq3s7y0atCvS9SU2Loejh6q9nIshnLFYd2qE4JKZdO830WBplrz3DCrV/XYBSedx2MMCIIgWk8d51amkWTnCy72giBiyovbRkI2su0OooguAOjcqBMOGDQhWGVud1A5CG+uuRHr7bgbrZVS+ZlXJO7xkRTu41YjzxPRiLsXvTTC8s+REH8zfQ95jgSV7LUyeP7W11NkcrrGku6qiKs+yMaaZi8TzWyzYiv7NZ7d/E1BL0QRZgPqaxTxq6GCLuhmIc7yHlo+8UgdlsC0A5zEC03UJWJaIG3eett7nYoM+/uOeZvK7XfKiUupYxU3RJwoDEWYN3MPhZaVkPZAQF23U9DiHjXX9uLio2pg9IcqWUdvpe0ZGBRFK/UGZbzxA0UHlat+z6ddAjpi1yY/Mm7sgYoo/4wfMvSl4vjuvehjywbhr07DvkgnB759FRjR7jxSksgM13qScZJycQxu6u1J8EupC/rJeEArzNNHLnzXfXALXEqlX6a1QjRKslSxEfj2gD9vWDyvjURaAh91ww2xIlBwFBilP8wONn1U=" - file: - - build/_output/normal-distribution-calculator.wigt - - build/_output/normal-distribution-calculator-build-info.yml - on: - tags: true - repo: ucfopen/normal-distribution-calculator-materia-widget -notifications: - email: false - slack: - secure: "nanx8adEGCHOwZGYT0aw5bnqEJ830XjO1UX0lH/WVWdtUQOti9HRV1a2Uwh90RKDp5uERdN5QbsuxJaqR+a/giP3mqrjGiEhaUx987fGj7KFQ3cSclqUIQczSIGcd/vgp95dWHojI6eMfwVo1y6XmQJP+5jlCu4Pcgpj7jQnxXzfPOUSfQF/390bHeWRlsCyMJI2zL0iJU6ROKqmZdBc2pSPVjxKyJEucbUoBGrhZem7f6taREkAe8N4PbbNI1S7lmGiB5lbbNOj45LDiEGtyaqyl2FNNUKtuTZ45sZahJEo2UlILJsjCT+7cEMgZUoHBXITB/lrmkwsBVlIFGRpBjDUCg3zwb7YiQqHpSvE828nL5kJw+5IGkU+JzVvnS6PnMSaeSNJYB8alXuXn05ZkETPwQD+SL1XhFGwHUNeSjVADZOrx9IuqlxyC5t0z5asXa6SMuspq+uUZ4suSNNL7HF8L3KI3/6O3D/WEa+CXSiOk99WFTAJWfZYSYdx6jjegvG0dJitzTbOa7a9Xg7hNiNRNsJGmp3sXkegZNoJ+W+nWsI/yz9n7p+j4rQyeFh/cCJuCFY3vqoXfX388lGp1k2HuX4Jc0KnpM3hhgRMTQCqBM3n7OFQW22R0EUrGqbkRX0WVBY5qGBDyOHxbZNoUt8aozhq2a6Sb7XVsgV4Pag=" - - diff --git a/src/player.scss b/src/player.scss index def111a..d1071a4 100644 --- a/src/player.scss +++ b/src/player.scss @@ -112,14 +112,16 @@ canvas { border-color:#00B0FF; } -/** jad: added focus background */ .info { - margin: 0 auto; width: 400px; + margin: 0 auto; + padding: 5px; + text-align: center; } .info:focus { - background-color: #00f39c; + background-color: #abe4ff; + border-radius: 3px; } span { diff --git a/yarn.lock b/yarn.lock index 43ca7bc..de86392 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5800,7 +5800,7 @@ materia-server-client-assets@2.1.0: js-snakecase "^1.2.0" ngmodal ucfcdl/ngModal#v1.2.2 -materia-widget-development-kit@^2.3.0: +materia-widget-development-kit@^2.5.2: version "2.5.2" resolved "https://registry.yarnpkg.com/materia-widget-development-kit/-/materia-widget-development-kit-2.5.2.tgz#831c7852bf2021cce8ed80a2b92d6153532b92f3" integrity sha512-rth0CHtNm1R+5f1poDjHpx5iGzPTw9PjBexlp8KoBr/NaOFEPP8SCxZtBq2YltwRUcH3MOukLoa4k+566uTRXQ== @@ -6186,7 +6186,7 @@ next-tick@^1.1.0: resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== -"ngmodal@github:ucfcdl/ngModal#v1.2.2": +ngmodal@ucfcdl/ngModal#v1.2.2: version "1.2.2" resolved "https://codeload.github.com/ucfcdl/ngModal/tar.gz/6abad982bdb8f258ffcdc20316a907c2292399d2"