From 9f78d562eca65e251a8fc92c1e226f8c289c67f5 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 22 Nov 2019 13:54:57 +0100 Subject: [PATCH 1/3] Use GitHub Actions for CI --- .github/workflows/ci.yml | 106 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b41037df --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,106 @@ +name: CI + +on: + push: + branches: + - master + - 'v*' + pull_request: {} + schedule: + - cron: '0 3 * * *' # daily, at 3am + +jobs: + lint: + name: Linting + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: get yarn cache dir + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v1 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-lint-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: install dependencies + run: yarn install + + - name: lint + run: yarn lint + + test: + name: Node Tests + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: get yarn cache dir + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v1 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-test-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: install dependencies + run: yarn install + + - name: node tests + run: yarn test:node + + ember-try-scenarios: + name: Ember Tests (${{ matrix.test-suite }}) + + runs-on: ubuntu-latest + + strategy: + matrix: + test-suite: + - test:strip + - test:keep + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: get yarn cache dir + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v1 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-ember-try-${{ matrix.test-suite }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: install dependencies + run: yarn install + + - name: test + env: + TEST_SUITE: ${{ matrix.test-suite }} + run: yarn test:all --skip-cleanup From d51a6008aca165349c027edd9b43414f6b28ce47 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 22 Nov 2019 14:41:51 +0100 Subject: [PATCH 2/3] Use GitHub Actions for `npm publish` --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..6eead75d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + release: + name: Release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12.x + + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From fab870e3e951f2317a7470a14fa960fdbaeec464 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 22 Nov 2019 14:42:09 +0100 Subject: [PATCH 3/3] Remove TravisCI config file --- .travis.yml | 68 ----------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 468f6f00..00000000 --- a/.travis.yml +++ /dev/null @@ -1,68 +0,0 @@ ---- -language: node_js -node_js: - - "10" - -branches: - except: - - /^dependabot\/.*$/ - -cache: - yarn: true - -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - -install: - - yarn install --no-lockfile - -jobs: - include: - - &ember-test - stage: test - env: TEST_SUITE=test:strip # used only to make Travis UI show description - - addons: - chrome: stable - - script: - # Usually, it's ok to finish the test scenario without reverting - # to the addon's original dependency state, skipping "cleanup". - - yarn test:all --skip-cleanup - - - <<: *ember-test - env: TEST_SUITE=test:keep # used only to make Travis UI show description - - - stage: test - env: NAME=lint # used only to make Travis UI show description - - script: - - yarn lint - - - &node-test - stage: test - env: NAME=node-tests # used only to make Travis UI show description - - script: - - yarn test:node - - - <<: *node-test - node_js: 8 - - -deploy: - provider: npm - email: info@simplabs.com - api_key: - secure: W+Rd93/PCfsCFxEhsp3F9thwBfOomf149DtgzrpPfGkFSaAiUg3viFi4A/Qna50hgWTyqIZB+cF28mXXw6NZBc5WjzEXvd0jmfT7/Dz17gdGNyOwtgZLgjhCeipniWeLMCfiJ0rseHmzTmafqTpOM9uRzufywX8E5X3/RAvXVAn5jRi2WT2Lg1vpZiXyGy/iCTcfp+hrPmF01xF5ibzDkY3DKBe+a0l4Q4n6H2s1qHdXIRqRmyHWaQZzjlsyeWYwSLX07zd2gIm7Or47HbXiw/zWKseASwI02D2aafmjUFrYpEF0d2CHobSWsrnoFmgzVYw1I6NJ6vuLCGKbA5VJES5IWK5qAbw9EGD6qCPudyqPUKB2s4N0C+NiTLoiK/BCU7eMRkzPOU0smENliz4dsw36rCMUY7FqOZFaxs4+CP+90pRMTXNXBwtZB8YraFdBBh/8KIB53TyfpUw7C1W3Q+zHMzuOi8K5Wa3M5yhEsWdMEzTwfvNBYzxjlXMhTU12CURP02hHQHJuGMW5A7XTVEVWSZECOo8+Wo6EH8oXXNBlj+JzudJB8qmd5MGyN81m2VoTpJ9toumg7I9xaTdNZshOr9jXCkxHAQBObpO8KfcFnLeS68tAsNYtPst0uEdEeGPs8KWg18lcVcg0LY37VBefDWBOynpvkh0+sNTotP8= - on: - tags: true - repo: simplabs/ember-test-selectors - -notifications: - email: false - slack: - rooms: - secure: OOKD4ZksqzEBW/A3WRuOToODIxnDITqx+Esu7tdmmYPuQlMYgx4SUHv8j9OM9/ScFJiseeVGSkl45vJrHLLIITX9XSjO1RgiGZgw2heVujmGpF6CZNqvT6GsQuKIvMzmwF7IxuHdfV45Csr9Ou/Fg74TszR/4S2h4SOI4zhLg7A= - on_success: never