version: 2 jobs: build: docker: - image: cimg/node:18.16.0 working_directory: ~/repo steps: - checkout # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} # fallback to using the latest cache if no exact match is found - v1-dependencies- - run: npm install - run: sudo apt-get update -yqq - run: sudo apt-get install -yqq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget - run: | # 全てのlanugage-packをインストールする # language-pack-ja単体だと何故か失敗する… sudo apt -qqy --no-install-recommends install -y locales-all && sudo locale-gen ja_JP.UTF-8 && sudo update-locale LANG=ja_JP.UTF-8 && sudo update-locale LANGUAGE="ja_JP:ja" - run: | # 日本語フォントをインストールする sudo apt -qqy --no-install-recommends install -y fonts-takao-gothic fonts-takao-mincho && sudo dpkg-reconfigure --frontend noninteractive locales && sudo fc-cache -fv - save_cache: paths: - node_modules key: v1-dependencies-{{ checksum "package.json" }} # run tests! - run: npm test - deploy: name: Start master deploy command: | git config --global user.name "CircleCI" git config --global user.email "circleci@gh-pages.com" git add --all git commit -m "Circle CI updates files." git pull origin master git push origin master workflows: version: 2 nightly: triggers: - schedule: cron: "0 19 * * *" filters: branches: only: - master jobs: - build